Hi all. Can anyone give me the ideas how to maneuver a snake in Snake game? I currently trying to do a snake game from scratch. Hope someone can give me an idea. TQ.. :)

You'll first have to decide what kind of GUI you want. I.e. do you want to use OpenGL, etc?

no, just a simply win32 console application.. I'm newbie in c++ programming actually..

So you'll want to write a "DrawMap" function that first clears the screen and then writes the | and - (the things for the snake to run into0 and draws the snake's position (using 0's or something). This is quite a big project to just ask "How do I do it?". You should come up with a plan of what you think you need to do and we can check it for you.

David

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.