Phoenix Graphics

This is a discussion on Phoenix Graphics within the Game Programming forums, part of the General Programming Boards category; I want to make a JavaScript remake of Phoenix for the TI-83, but can't figure out how to make the ...

  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,262
    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:

    Name:  thing.JPG
Views: 115
Size:  685 Bytes

    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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    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,262
    >> 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, 10:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 09:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 06:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 12:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21