Hi all. Here's my problem:
I have an array, tileArray(i, j). Each array element contains a 16 x 16 tile.
I have drawn them to the screen to map over the entire screen:
for i = 0 to 63
for j = 0 to 47
drawImage tileArray(i, j), 16 * i, 16 * j
next
next
The problem is, performing this many draw operations in a single program loop is WAY too cpu intensive. Does anyone have an idea of a faster method? It's important that the tiles can be updated on a frame-by-frame basism because some of the tiles are animated.
Thanks a lot.
I have an array, tileArray(i, j). Each array element contains a 16 x 16 tile.
I have drawn them to the screen to map over the entire screen:
for i = 0 to 63
for j = 0 to 47
drawImage tileArray(i, j), 16 * i, 16 * j
next
next
The problem is, performing this many draw operations in a single program loop is WAY too cpu intensive. Does anyone have an idea of a faster method? It's important that the tiles can be updated on a frame-by-frame basism because some of the tiles are animated.
Thanks a lot.