I am the putpixel King!

This is a discussion on I am the putpixel King! within the Game Programming forums, part of the General Programming Boards category; Well, at a friend's suggestion, I decided to program my first game, snakey. Included are the source and executable. The ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    752

    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?
    http://www.geocities.com/questionc/snakey.zip
    Callou collei we'll code the way
    Of prime numbers and pings!

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    375

    Talking

    Nice job! The link doesn't work like that though, you gotta go to http://www.geocities.com/questionc/ then click on snakey.zip.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    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 Cprogramming.com
    Replies: 25
    Last Post: 06-09-2005, 01:42 PM
  2. Bresenham Circle Algorithm
    By cozman in forum Game Programming
    Replies: 4
    Last Post: 04-30-2002, 10: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, 01:50 AM
  5. I am king.
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 09-20-2001, 06:58 PM

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