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.
  • 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

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

    Luis Alonso Ramos wrote:

    Ohh those were the days!!

    Damn dude. You're 3 years younger than I am and you already have an employee? :omg: I need to stop procrastinating and start my own business. Oh yeah, and congrats on doing so well at such a young age. Jeremy Falcon

    L 2 Replies Last reply
    0
    • J Jeremy Falcon

      Luis Alonso Ramos wrote:

      Ohh those were the days!!

      Damn dude. You're 3 years younger than I am and you already have an employee? :omg: I need to stop procrastinating and start my own business. Oh yeah, and congrats on doing so well at such a young age. Jeremy Falcon

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

      Jeremy Falcon wrote:

      You're 3 years younger than I am and you already have an employee?

      Actually I now have two (great people, both of them) :-D and I'm looking for more!! Business is going well down here! :) Even if I have to be at the office on Saturday at 8 pm.... :rolleyes: -- 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

      1 Reply Last reply
      0
      • P Paul Conrad

        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 Offline
        L Offline
        Luis Alonso Ramos
        wrote on last edited by
        #23

        computerguru92382 wrote:

        It's something else looking back at how far computing has come

        I remember one of my first computers, a grayscale laptop, an HP Omnibook 360. It was a 386/20 MHz with 1 MB of RAM. When I upgraded it to 2 MB it was so fast!!! And trying to compare that to my 2 GB of RAM I have in my computer (that I just received on Thursday! :-D). My first PC was a 386/16 MHz back in 1990. Before that there was a computer at home, altough not officially mine: an Apple IIc. It's incredible how far we have gone in 15 years. I wonder what the next 15 will bring... -- 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

        1 Reply Last reply
        0
        • J Jeremy Falcon

          Luis Alonso Ramos wrote:

          Ohh those were the days!!

          Damn dude. You're 3 years younger than I am and you already have an employee? :omg: I need to stop procrastinating and start my own business. Oh yeah, and congrats on doing so well at such a young age. Jeremy Falcon

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

          Oops! I forgot to reply to this on the other post

          Jeremy Falcon wrote:

          Oh yeah, and congrats on doing so well at such a young age.

          Thanks! It's been a lot of hard work! :) I guess there has always been an entrepreneur in me. There's a downside to it, specially being a 24/7 job, but the benefits you get easily compensate for that. Ask other people here that work by themselves (code-frog comes to mind), once you are on your own, you'll never want to go back. So, yes, stop procrastinating and get to work! :-D -- 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
          • 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

            A Offline
            A Offline
            Allen Anderson
            wrote on last edited by
            #25

            nice job! that brings back some serious memories when I used to play that game on the appleII.

            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

              M Offline
              M Offline
              Matt Gerrans
              wrote on last edited by
              #26

              Was it called Sam the Snake or something like that before it was called Nibbles? Or am I thinking of something else? I did like that game. I remember playing it on a 286 machine when they first came out; it was so fast, the game would be over as soon as it started. There was an early version of PacMan for PCs that had the same problem. Then people started to realize you had to use the timer chip for timing instead of a delay loops. Matt Gerrans

              J 1 Reply Last reply
              0
              • M Marc Clifton

                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 Offline
                M Offline
                mmikey7
                wrote on last edited by
                #27

                Great ideas Marc! Thank you! I'm intentionally keeping it very simple, since it's project for C# course for begginers. Therefore it may looks too simple, but I think it's okay because it's easy to understand. However, I like you ideas so If I'll have enough time I will implement your ideas.

                Marc Clifton wrote:

                If he eats his tail, he dies.

                Doesn't he? "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

                1 Reply Last reply
                0
                • M Matt Gerrans

                  Was it called Sam the Snake or something like that before it was called Nibbles? Or am I thinking of something else? I did like that game. I remember playing it on a 286 machine when they first came out; it was so fast, the game would be over as soon as it started. There was an early version of PacMan for PCs that had the same problem. Then people started to realize you had to use the timer chip for timing instead of a delay loops. Matt Gerrans

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

                  Matt Gerrans wrote:

                  Was it called Sam the Snake or something like that before it was called Nibbles?

                  I dunno. I know the game was around before Nibbles so maybe. But, Nibbles was the first one I played, so it's nostalgic. :) Jeremy Falcon

                  1 Reply Last reply
                  0
                  • L Luis Alonso Ramos

                    Oops! I forgot to reply to this on the other post

                    Jeremy Falcon wrote:

                    Oh yeah, and congrats on doing so well at such a young age.

                    Thanks! It's been a lot of hard work! :) I guess there has always been an entrepreneur in me. There's a downside to it, specially being a 24/7 job, but the benefits you get easily compensate for that. Ask other people here that work by themselves (code-frog comes to mind), once you are on your own, you'll never want to go back. So, yes, stop procrastinating and get to work! :-D -- 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
                    #29

                    Luis Alonso Ramos wrote:

                    So, yes, stop procrastinating and get to work!

                    :laugh: Jeremy Falcon

                    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

                      C Offline
                      C Offline
                      code frog 0
                      wrote on last edited by
                      #30

                      So I've read all the comments (I think) now here's mine. You won't release the code as it's mucky (first stages and all). I say that your article should largely encompass the current state of code and which decisions went into transitioning it from where it is to where you want it. That would give insight into the refinement process, better design, etc for new developers. More experienced developers will skim across it devour your code for pure geekdome and just enjoy it. It would be cool to include {old code block} - {what you didn't like, what it lacked, etc.} - {new code block} in parts as you discuss some of the more challenging parts of the design. In the same breath I think we'd all enjoy just seeing your code in whatever state. If you release it as a "Take it how it is don't beat me up for it." I think people will really appreciate it but I think they will no matter what state the code is in.

                      I only read CP for the articles. Code-frog System Architects, Inc.

                      M 1 Reply Last reply
                      0
                      • C code frog 0

                        So I've read all the comments (I think) now here's mine. You won't release the code as it's mucky (first stages and all). I say that your article should largely encompass the current state of code and which decisions went into transitioning it from where it is to where you want it. That would give insight into the refinement process, better design, etc for new developers. More experienced developers will skim across it devour your code for pure geekdome and just enjoy it. It would be cool to include {old code block} - {what you didn't like, what it lacked, etc.} - {new code block} in parts as you discuss some of the more challenging parts of the design. In the same breath I think we'd all enjoy just seeing your code in whatever state. If you release it as a "Take it how it is don't beat me up for it." I think people will really appreciate it but I think they will no matter what state the code is in.

                        I only read CP for the articles. Code-frog System Architects, Inc.

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

                        Okay, I can agree with you. I spent about 5 hours with the whole thing therefore I release it as "Take it how it is don't beat me up for it." ;) [edit] Link is not available anymore [/edit] "...government is not the solution to our problem. Government is the problem." -Ronald Reagan

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          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

                          C Offline
                          C Offline
                          code frog 0
                          wrote on last edited by
                          #32

                          I think you have him confused with Id Software Marc. This is just a one man shop doing a small demonstration. Since I'm in real tight with John Carmack (not) I'll pass your comments on to him and they'll get it released before Doom 4.;P

                          I only read CP for the articles. Code-frog System Architects, Inc.

                          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