Home | Register new account | Login | Search for a message | Currently Online
Subject: well, okay.
(Posted on 12/07/03 - 02:22:57 PM)

Turn smilies off

an integer is 2 bytes. You're going to want to use that as your array type.

Now that you've established how big one element is, think of how many bytes per pixel. In screen 13, this is 1 byte. In any 16 color mode, this is .5 bytes. So after that, you're going want to figure out hte number of pixels (width * height), and divide that by the number of pixels in each element. (and then subtract by 1 since arrays start at zero by default)

'screen 13:
dim tilevga (width * height / 2 - 1) as integer

'any 16-color mode:
dim tileega (width * height / 4 - 1) as integer

Replies to this message:
There are no replies to this message.

Post a reply:
Nickname: You are not logged in. If you have a registered account you should login before posting.