-
Phoenix Graphics
I want to make a JavaScript remake of Phoenix for the TI-83, but can't figure out how to make the images. What does this mean, and how do I convert it to a usable format (probably gif)
Code:
img_enemy_4:
.db 7,9
.db %10000010
.db %11000110
.db %11111110
.db %10000010
.db %10000010
.db %10000010
.db %11111110
.db %01111100
.db %00111000
Thanks
MadCow
-
I don't know, but this is a guess - 7 and 9 are the image dimensions. The binary numbers below are in an 8*9 format, but the last digit always a 0 (seemingly from this piece of info), so if we knock that off, we get some kind of array in the dimensions of 7*9. Assuming 1 is black and 0 is white (this is PURE speculation, I'm simply guessing), one would get an image as follows:
Attachment 6805
I've no idea if this is of any help or not ... just guessing. Do you know if it's meant to be in color or something?
-
That is assembly language. The data is in the 1's and 0's. 7 and 9 are probably the dimensions.
EDIT:
Looks like someone beat me to it.
-
Ah I was thinking of each row as a single value, thanks alot
-
Well it is, technically. But the binary representation of the number is the desired bit pattern.
-
>> Looks like someone beat me to it.
AND got time to play with MS Paint at the same time. If it was just a number put up there I wouldn't have had a clue what it meant. ie -
Code:
img_enemy_4:
.db 7,9
.db %130
.db %198
.db %254
.db %130
.db %130
.db %130
.db %254
.db %124
.db %56
would have had me stomped, probably.