VBGamer |
|||||||||||||||||||||||||||
RE: iso/tile engine BonE (1 reply, 0 views) (2000-Jul-19) There's nothing easyer than programming a tile engine! As bases you can use one 2D array:
Dim Map(0 to 99, 0 to 99) as byte
later on you draw like this (pseudo)
for x = 0 to 99
for y = 0 to 99
Backbuffer.blt ddstiles(Map(x+movex,y+movey) )
next y
next x
the movex/y is to scroll the map!
that's all! you can do as many layers as you want by just repeating this
|