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.

The 20 Line Challenge / Snake [DBC]

Author
Message
pictionaryjr
9
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 16th Jul 2010 23:36
Snake game in 20 lines =)



David Gervais
Moderator
13
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 17th Jul 2010 00:00 Edited at: 17th Jul 2010 00:00
FYI this game compiles and runs in DBPro also, nice little 20-liner.

Cheers!

pictionaryjr
9
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 17th Jul 2010 10:25
Haha thanks for the info and feedback david =)

Dr Tank
9
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Southampton, UK
Posted: 22nd Jul 2010 12:50
That's nice. Works well. More convenient than playing it on my phone.
ghostkrashers
8
Years of Service
User Offline
Joined: 19th Jul 2010
Location:
Posted: 23rd Jul 2010 00:46
I looked at the coding and the Game Over thing doesn't come up like it says. I didn't look for the reason, because I think it might just be DBPro messing with it.
29 games
13
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 28th Jul 2010 02:46
That's really cool.

It ran perfectly fine in DBC but I had the same issue as ghostkrashers when I ran it in DBPro, although it did "play again" if a pressed any key. I managed to fix it by adding a bit to the end of the "gameover" sub-routine:



This will work in both DBC and DBPro.
Daygamer
8
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 10th Aug 2010 20:31
yeah, this is very cool. I've always liked snake. very impressive, pictionaryjr.

Coding is just better with music
God Bless!

Login to post a reply

Server time is: 2018-12-18 19:00:19
Your offset time is: 2018-12-18 19:00:19