Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Showcase / Isometric Editor.
- - By Basic Date 2011-03-07 17:20 Edited 2011-03-07 18:07
A project I'm doing on the PS2 requires relatively large isometric maps, and the hell if I was going to do this by hand :)

I managed to do this in one evening, which speaks volumes of Ruby/Gosu. Thanks Jlnr
Attachment: Screenshot2011-03-07at17.18.00.png - Screenshot editor (103k)
Parent - - By mathias Date 2011-03-08 11:04
Wow, that looks quite cool. How did you do the screen coordinates to world coordinates calculation?
Parent - By Basic Date 2011-03-08 13:02
Very similar to that of a top down tile game.

I'm storing all the tiles in a 2D array @level_data[y][x]

loop through it and use the x, y index to multiply the offsets.

Tile::WIDTH = 32
Tile::HEIGHT = WIDTH / 2

# coords
x * Tile::WIDTH
y * Tile::HALF_HEIGHT

# x row offsets
if x.odd?
x += Tile::HALF_WIDTH
Up Topic Gosu / Gosu Showcase / Isometric Editor.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill