Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Snake Game

Author
Message
Cooldude
16
Years of Service
User Offline
Joined: 10th Nov 2007
Location:
Posted: 10th Dec 2007 18:40
Ok, I\'ve got a couple of questions for you. I am making a snake game and I have about three questions.

1. Shound I have my snake image be a square and then add a square every time the snake collides with a piece of food?

2. How do I set It so that all my squares go up when I press up at the point I pressed up at???

3. How do I randomize where my food will get placed?

I Programming!
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 10th Dec 2007 21:23
1. Yes
2. Uh...store all the squares in an array, then calculate each one. You'll need to use the db input functions to read the keyboard, then do some programming...
3. There's a dbRnd(int max) function that makes random numbers. You'll need to call dbRandomize(dbTimer()) first.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Dec 2007 20:53

Login to post a reply

Server time is: 2024-09-29 07:24:17
Your offset time is: 2024-09-29 07:24:17