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.

Newcomers DBPro Corner / HOw CAn I make a very easy snake like game?

Author
Message
KeithMAN
17
Years of Service
User Offline
Joined: 24th Jul 2007
Location:
Posted: 10th Aug 2007 22:56
I want to learn about making a snake game
HOw do I make it so A sprite dosn't stop when key isn't held down?
how can I make it so if a colision with object to get longer?


hey those are some nifty lamps you got there
running is for your health,you know?
impressed?,well i'm the bestgood
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Aug 2007 00:30 Edited at: 11th Aug 2007 00:31
You could look at the 2004 competition, where the entries included source code, and one of the 3 categories was "Snake"

http://www.thegamecreators.com/?gf=2004compo_entries

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Aug 2007 02:50
Quote: "HOw do I make it so A sprite dosn't stop when key isn't held down?"

In snake, the directions work like switches, when you press a direction it will go in that direction until told otherwise.
so just do this


you want to make a grid for the snake to move in and then have different values for the property of each square (whether it is blank, part of the snake, or prey)
you need images for: head(norm_hori,norm_vert,eat_hori,eat_vert), body(hori,vert), tail(hori,vert) and prey

Your signature has been erased by a mod because it was rubbish.

Login to post a reply

Server time is: 2024-11-25 13:44:45
Your offset time is: 2024-11-25 13:44:45