Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Snake

Snake

Scheduled Pinned Locked Moved The Lounge
csharpgame-devhelpquestioncode-review
32 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mmikey7
    wrote on last edited by
    #1

    As a part of C# course I'm teaching in school, I developed simple Snake game. This is a very first draft. Try it out! If you'll enjoy it, I could write an article about it. [edit] Link is not available anymore. [/edit] You need .NET 2.0 to run game. Any ideas to improve game? "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

    P J M A C 5 Replies Last reply
    0
    • M mmikey7

      As a part of C# course I'm teaching in school, I developed simple Snake game. This is a very first draft. Try it out! If you'll enjoy it, I could write an article about it. [edit] Link is not available anymore. [/edit] You need .NET 2.0 to run game. Any ideas to improve game? "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Michal Martinka wrote:

      I could write an article about it.

      You should write an article about it for beginners. Could you provide source code instead of an executable? PC

      M 1 Reply Last reply
      0
      • P Paul Conrad

        Michal Martinka wrote:

        I could write an article about it.

        You should write an article about it for beginners. Could you provide source code instead of an executable? PC

        M Offline
        M Offline
        mmikey7
        wrote on last edited by
        #3

        computerguru92382 wrote:

        Could you provide source code instead of an executable?

        Of course, If I'll write an article I'll provide source code. But I think it's not good idea right now because code is in very early stage and is not commented so it would not be helpful to beginners anyway. "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

        P 1 Reply Last reply
        0
        • M mmikey7

          computerguru92382 wrote:

          Could you provide source code instead of an executable?

          Of course, If I'll write an article I'll provide source code. But I think it's not good idea right now because code is in very early stage and is not commented so it would not be helpful to beginners anyway. "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Michal Martinka wrote:

          If I'll write an article I'll provide source code

          Well, pretty up the code and write an article for beginners :) PC

          1 Reply Last reply
          0
          • M mmikey7

            As a part of C# course I'm teaching in school, I developed simple Snake game. This is a very first draft. Try it out! If you'll enjoy it, I could write an article about it. [edit] Link is not available anymore. [/edit] You need .NET 2.0 to run game. Any ideas to improve game? "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            Michal Martinka wrote:

            Any ideas to improve game?

            Put obstacles in it like Nibbles had. In fact, make a .NET version of Nibbles. That would be neat. Jeremy Falcon

            P M 3 Replies Last reply
            0
            • J Jeremy Falcon

              Michal Martinka wrote:

              Any ideas to improve game?

              Put obstacles in it like Nibbles had. In fact, make a .NET version of Nibbles. That would be neat. Jeremy Falcon

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Jeremy Falcon wrote:

              Put obstacles in it like Nibbles had. In fact, make a .NET version of Nibbles. That would be neat.

              Shame on me for forgetting about Nibbles :laugh: PJC

              J 1 Reply Last reply
              0
              • P Paul Conrad

                Jeremy Falcon wrote:

                Put obstacles in it like Nibbles had. In fact, make a .NET version of Nibbles. That would be neat.

                Shame on me for forgetting about Nibbles :laugh: PJC

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                computerguru92382 wrote:

                Shame on me for forgetting about Nibbles

                It was great. One of the first hacks I made for that game was infinite lives. Man, those were the days, back when programming was more important than sleep. :-D Jeremy Falcon

                P L 3 Replies Last reply
                0
                • J Jeremy Falcon

                  computerguru92382 wrote:

                  Shame on me for forgetting about Nibbles

                  It was great. One of the first hacks I made for that game was infinite lives. Man, those were the days, back when programming was more important than sleep. :-D Jeremy Falcon

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #8

                  And the Gorilla game where you would launch bananas at the other guy and try to blow him up... PC

                  J 1 Reply Last reply
                  0
                  • J Jeremy Falcon

                    computerguru92382 wrote:

                    Shame on me for forgetting about Nibbles

                    It was great. One of the first hacks I made for that game was infinite lives. Man, those were the days, back when programming was more important than sleep. :-D Jeremy Falcon

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    Jeremy Falcon wrote:

                    back when programming was more important than sleep

                    I still have Quick Basic 4.5 and I actually have it installed on this computer. Big difference between a 386 and a 2.5ghz P4 as far as QB 4.5 is concerned :-D

                    J 1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      computerguru92382 wrote:

                      Shame on me for forgetting about Nibbles

                      It was great. One of the first hacks I made for that game was infinite lives. Man, those were the days, back when programming was more important than sleep. :-D Jeremy Falcon

                      L Offline
                      L Offline
                      Luis Alonso Ramos
                      wrote on last edited by
                      #10

                      I created an entirely new-level. It was full of dotted lines, with a little offset, so you had zig-zag all the way around... I could never finish it :rolleyes: And I was like 13!! -- LuisR


                      Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

                      The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

                      J 1 Reply Last reply
                      0
                      • P Paul Conrad

                        Jeremy Falcon wrote:

                        back when programming was more important than sleep

                        I still have Quick Basic 4.5 and I actually have it installed on this computer. Big difference between a 386 and a 2.5ghz P4 as far as QB 4.5 is concerned :-D

                        J Offline
                        J Offline
                        Jeremy Falcon
                        wrote on last edited by
                        #11

                        Yeah, gotta love the old-style CPU/clock based timer routines. :) Jeremy Falcon

                        1 Reply Last reply
                        0
                        • P Paul Conrad

                          And the Gorilla game where you would launch bananas at the other guy and try to blow him up... PC

                          J Offline
                          J Offline
                          Jeremy Falcon
                          wrote on last edited by
                          #12

                          Oh man. I remember that. I so sucked at that game (at the time at least). :laugh: Jeremy Falcon

                          P 2 Replies Last reply
                          0
                          • L Luis Alonso Ramos

                            I created an entirely new-level. It was full of dotted lines, with a little offset, so you had zig-zag all the way around... I could never finish it :rolleyes: And I was like 13!! -- LuisR


                            Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

                            The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #13

                            Luis Alonso Ramos wrote:

                            I could never finish it

                            Don't fret it, I never did finsih Nibbles without cheating.

                            Luis Alonso Ramos wrote:

                            And I was like 13!!

                            You yougin. ;P Actually, I was a teenager too during my QBasic days. Jeremy Falcon

                            L 1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Luis Alonso Ramos wrote:

                              I could never finish it

                              Don't fret it, I never did finsih Nibbles without cheating.

                              Luis Alonso Ramos wrote:

                              And I was like 13!!

                              You yougin. ;P Actually, I was a teenager too during my QBasic days. Jeremy Falcon

                              L Offline
                              L Offline
                              Luis Alonso Ramos
                              wrote on last edited by
                              #14

                              Jeremy Falcon wrote:

                              I never did finsih Nibbles without cheating.

                              I did, just not the level I created. It was damn too hard!!

                              Jeremy Falcon wrote:

                              I was a teenager too during my QBasic days

                              The first program I remember was a little game (in QBasic, of course) where the you had to guess the computer's secret number. I wrote it in Christmas 1991 (I was 10 then). The second version generated the number randomly!! :-D Ohh those were the days!! ;P -- LuisR


                              Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

                              The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

                              P J 2 Replies Last reply
                              0
                              • L Luis Alonso Ramos

                                Jeremy Falcon wrote:

                                I never did finsih Nibbles without cheating.

                                I did, just not the level I created. It was damn too hard!!

                                Jeremy Falcon wrote:

                                I was a teenager too during my QBasic days

                                The first program I remember was a little game (in QBasic, of course) where the you had to guess the computer's secret number. I wrote it in Christmas 1991 (I was 10 then). The second version generated the number randomly!! :-D Ohh those were the days!! ;P -- LuisR


                                Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

                                The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

                                P Offline
                                P Offline
                                Paul Conrad
                                wrote on last edited by
                                #15

                                I got this old Sinclair computer when I was 9 and started programming then. It used a tape recorder for storage. I then moved up to a Commodore 64 when I was 10 and then got a 386 when they first came out. It's something else looking back at how far computing has come. PJC

                                L 1 Reply Last reply
                                0
                                • J Jeremy Falcon

                                  Oh man. I remember that. I so sucked at that game (at the time at least). :laugh: Jeremy Falcon

                                  P Offline
                                  P Offline
                                  Paul Conrad
                                  wrote on last edited by
                                  #16

                                  Jeremy, I think I probably still have those games floating around here somewheres... Paul

                                  1 Reply Last reply
                                  0
                                  • J Jeremy Falcon

                                    Michal Martinka wrote:

                                    Any ideas to improve game?

                                    Put obstacles in it like Nibbles had. In fact, make a .NET version of Nibbles. That would be neat. Jeremy Falcon

                                    P Offline
                                    P Offline
                                    Paul Conrad
                                    wrote on last edited by
                                    #17

                                    Here is the Nibbles source: nibbles.bas

                                    1 Reply Last reply
                                    0
                                    • J Jeremy Falcon

                                      Oh man. I remember that. I so sucked at that game (at the time at least). :laugh: Jeremy Falcon

                                      P Offline
                                      P Offline
                                      Paul Conrad
                                      wrote on last edited by
                                      #18

                                      Here is a source for the Gorilla game: gorilla.bas

                                      J 1 Reply Last reply
                                      0
                                      • M mmikey7

                                        As a part of C# course I'm teaching in school, I developed simple Snake game. This is a very first draft. Try it out! If you'll enjoy it, I could write an article about it. [edit] Link is not available anymore. [/edit] You need .NET 2.0 to run game. Any ideas to improve game? "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

                                        M Offline
                                        M Offline
                                        Marc Clifton
                                        wrote on last edited by
                                        #19

                                        Don't you love .NET? a 7KB executable. :-D Some ideas (not necessarily all compatible): snake moves slower as he becomes more well fed, and faster as he gets hungry. have snake grow as he eats. If he eats his tail, he dies. start putting more food on the board. Food lasts for a limited time. As snake grows, he needs more food, but more food makes him grow more, so he has to eat faster... sounds obstacles competing snakes magic "diet" pill (shrinks snake) mongoose (eats snakes) smoother animation--no reason to be blocky 3D-ish snake. Make him slither and look good networkable---snake death matches, hehehe. food can become rats, rats can move goals--clear all the rats in the village, but watch out for mongoose! give the environment some texture along the lines of the goal, maybe make the village a maze that you have to solve at the same time going back to the very first item, therefore, the player has to keep his snake fed enough to keep him moving "not too fast", but not so well fed that he can't escape the mongoose, etc. Marc Pensieve

                                        M C 2 Replies Last reply
                                        0
                                        • P Paul Conrad

                                          Here is a source for the Gorilla game: gorilla.bas

                                          J Offline
                                          J Offline
                                          Jeremy Falcon
                                          wrote on last edited by
                                          #20

                                          Oh man, this is gonna cause me trouble I can feel it now. :laugh: Jeremy Falcon

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups