My first game......please try it !!!!

This is a discussion on My first game......please try it !!!! within the Game Programming forums, part of the General Programming Boards category; Hi folks. This is my first game, Snake. Please try it. Its a 2D game that used DDRAW. Movement :- ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    Lightbulb My first game......please try it !!!!

    Hi folks.

    This is my first game, Snake. Please try it. Its a 2D game that used DDRAW.

    Movement :-
    The snakes movements are controlled by the arrowkeys. Alt speeds up the snake, and Cntrl slows it down.

    Aim:-
    You control the Red Snake. Direct it to gobble as many fruits (blue ellipses) as possible. Each fruit that you eat up gets you 8 points. The yellow snake is controlled by the computer, avoid it all costs. Also avoid dashing into your own body (or the yellow snakes body). The yellow snake will try to compete with you.

    I value all your suggestions and comments, please post them here. There may be bugs that I haven't fixed as yet, please report them too.

    Thanks in advance.

    Special thanks to all users of Gamedev.net and Cprogramming.com, who have always helped whenever I got stuck.

    Press Esc to quit the game.
    Attached Files Attached Files
    Last edited by CodeJerk; 06-19-2003 at 12:31 PM.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    it runs extremely slow on my computer. when i push alt it speeds up for a second then the program just quits.

    athlon 1.4G
    256Mb RAM
    GF 2, 64Mb

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    Hit Alt just once !!!!

    Don't keep ALt pressed, hit it just once. Or hit Cntrl to slow things down. Thanks anyway

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    I fixed the problem

    Now the game won't quit no matter how many times you hit Alt. After a certain degree, the snake cannot accelerate more.

  5. #5
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    Not a bad game better htan anything I've made. But it is strange how the snakes wrap around the screen and oyu don't die when you hit the sides.
    Give me a bad reputation!!!

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    57
    I think the game was quite tough, good job on the seek and eat AI.
    =@-OmegatronO-@=

  7. #7
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    I HATE that AI!!! IT is way to good for me to beat maybe yo ucould have a setting so losers like me could have a chance. Maybe make the snake blind and he just goes in circles. but I would still probably lose But all in al I think it is fun until I get defeated by a snake, such a low life form with greater intelligence and reflexes than I.
    Give me a bad reputation!!!

  8. #8
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    Smile

    Not bad. A windowed mode would be nice...as would the option to play again at the end. Once, I collided head on with the other snake, and it didn't display a game over...possible bug? Also, alt and ctrl have *DRASTIC* affects when I push either one of them...you might want to try handling it so that it changes a little bit each time you push it, but doesn't keep changing if you hold the key down (even tapping it seems to be too much for me)

    edit: actually, it just doesn't show the game over message occasionally... I haven't figured out a pattern... maybe it's when the other snake runs into you

    edit2: it's also possible to move horizontally beneath the bottom of the screen, completely out of view... a bit tricky, but can be done. Seems like a region the width of the snake.
    Last edited by confuted; 06-20-2003 at 10:05 PM.
    Away.

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    The game over message

    yes, it occasionally doesn't display the gameOver message. I was having some problems with that.
    I plan to change that to a dialog box, and also work on a menu system, thanks for the feedback.

  10. #10
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Or just attach the code here so everyone can give you suggestions...
    Away.

  11. #11
    Registered User
    Join Date
    Jun 2003
    Posts
    4

    Thumbs up

    lOl! its fun ! good job man!

  12. #12
    Registered User
    Join Date
    Jun 2003
    Posts
    1

    Red face this has some problem...

    hi codejerk,

    i first appreciate u for trying this job....but this has some problems...first, i tried it on P3 processor based computers and find it running properly...and also after the end of the game i could see the game over message...but when i tried it in the celeron based systems, after the end of the game, no msg. appears like game over...and in both cases it doesn't quit as i press the esc. key for the first time..it takes atleast 2-3 times that after pressing it , then the game quits...
    and coming to the speed control, i think that there should be atleast some levels of speed and not only the default and the increased level....
    but finally, what u have done can be appreciable...
    hope u meet with ur next game if u r trying...

    bye
    imaginator

  13. #13
    Registered User
    Join Date
    Jun 2003
    Posts
    4
    a required .DLL was not found.

  14. #14
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Good, but I'm having the same serious problems when the game ends. For some reason "game over" doesn' t appear, but when I minimize it and open it back again, it does. (?) Esc also doesn't work (when the game is over) and I have to shut it down manually. Otherwise, it's really good as your first game. Post the code up here when you get a chance, also. I would like to see it.
    Last edited by funkydude9; 06-27-2003 at 08:09 PM.

  15. #15
    Registered User
    Join Date
    May 2003
    Posts
    42

    COOL!!

    Good start man, infact it's a really cool game...
    Why don't you add some background to it, and a background MIDI music, it'd be a REAL HIT!!
    I have a code which stops life!

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-07-2010, 11:08 PM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 02:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

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