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.

Code Snippets / [DBP] - Snake >.>

Author
Message
Lewis999
13
Years of Service
User Offline
Joined: 23rd Oct 2010
Location:
Posted: 2nd May 2012 00:12 Edited at: 5th May 2012 01:06
Because I'm an extremely bored individual, with not much to do at the moment, I made this.


Yup, It's just snake, with all the usual stuff, and an interesting way of storing co-ordinates in a path (snake$(n) = str$(x)+","+str$(y)) ^^
It uses timer based movement and arrays to hold positions of stuff. all the usual.
Now, back to 3D

Hope you have a good day!
lewis
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 5th May 2012 00:27
Doesn't work.

As soon as I press WASD it restarts. What's supposed to move when I do that anyway? There's a blue square and a white snake.
Lewis999
13
Years of Service
User Offline
Joined: 23rd Oct 2010
Location:
Posted: 5th May 2012 01:09
w = move up
s = move down
a = left
d = right
It's like the arrow keys, but in my opinion more comfortable.
Anyway, there was a bug were, if the snake was facing down, and you tried to move up, it sees that the block above it is part of the snakes body and you die, I've changed it now so (hopefully) it's fixed
I've played it myself and it works fine.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 7th May 2012 13:33
Thanks. It seems to work well now (once I realised what I was supposed to do ).

Login to post a reply

Server time is: 2024-04-20 09:49:12
Your offset time is: 2024-04-20 09:49:12