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