Thread: Phoenix Graphics

  1. #1
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735

    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

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    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?

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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.

  4. #4
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Ah I was thinking of each row as a single value, thanks alot

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Well it is, technically. But the binary representation of the number is the desired bit pattern.

  6. #6
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> 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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM