Archived

This topic is now archived and is closed to further replies.

dos game programming

This topic is 5978 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

can someone give me a little help how to make this simple game (u know snake goes over screen and eats little cubes and geting bigger every time he eats ....) i am really stuck and dont know how to begin should i make struct of snake or use two dimensional array to represent snake cordinates or...? also anyone knows where can i download sources for simple dos games? thanks

Share this post


Link to post
Share on other sites
Mikky,
For the snake, an easy implementation would be to have an array that represents the screen (a text screen is usually 80x25), and have where the snake''s body is represented in the array. Then map the array to the screen. (Just off the top of my head)

And, you can check out programmers heaven for some source code.
http://www.programmersheaven.com for some games.

Share this post


Link to post
Share on other sites