Thread: I am the putpixel King!

  1. #1
    Registered User
    Join Date
    Sep 2001

    Talking I am the putpixel King!

    Well, at a friend's suggestion, I decided to program my first game, snakey. Included are the source and executable. The executable expects to be passed the speed of the snake as a command line argument (smaller is faster). Apple size is is hardcoded, but it's a macro, same with the borders. A speed of about 10 is comfortable, but it's still playable at 1.

    Something I didn't bother to mess with is that the program will quit if you get your snake 1024 segments long (queue overflow). Still, I think it's safe to call that 'winning', instead of 'bug', don't you? Game only runs in 320x200, just aborts if it finds that isn't supported (I don't see how that could happen).

    EDIT: A link to the zip would probably be a good idea, no?
    Callou collei we'll code the way
    Of prime numbers and pings!

  2. #2
    Registered User
    Join Date
    Oct 2001


    Nice job! The link doesn't work like that though, you gotta go to then click on
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland:

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    lol i could imagine...

    "Congratulations! SIGSEGV..."

    i'll check it out!
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Probability Help - Math Geniuses Here
    By The Brain in forum A Brief History of
    Replies: 25
    Last Post: 06-09-2005, 12:42 PM
  2. Bresenham Circle Algorithm
    By cozman in forum Game Programming
    Replies: 4
    Last Post: 04-30-2002, 09:21 PM
  3. Replies: 2
    Last Post: 11-26-2001, 04:05 PM
  4. Thanks Troll King
    By yukon in forum C Programming
    Replies: 2
    Last Post: 10-17-2001, 12:50 AM
  5. I am king.
    By mfc2themax in forum A Brief History of
    Replies: 34
    Last Post: 09-20-2001, 05:58 PM