|
www.sz-ex.com/chris/snake/snake_v3.htmlSo, I decided it was time for me to get off my ass and do something medium-high level JS again.... and I figured what could be better than finishing my snake game... so I did. Except, I started from scratch instead of finishing. This is open source for those who want to learn from it. Should work properly in Opera 9.5, Firefox 3, and Internet Explorer 7. I haven't tested any other browsers. Let me know if you find any bugs, etc. Have fun.
|
|
|
|
|
Always manage to keep me entertained. I'll be honest, the controls are a lot more responsive than i'd have expected. Though, considering the simplicity of the game, i'd have anticipated a more linear approach; your source seems rather adaptable to change. Was it your plan from the start to open source it or do you just like the attention?
Last Edit: Jul 22, 2008 5:39:50 GMT by Aaron
|
|
|
|
Always manage to keep me entertained. I'll be honest, the controls are a lot more responsive than i'd have expected. Though, considering the simplicity of the game, i'd have anticipated a more linear approach; your source seems rather adaptable to change. Was it your plan from the start to open source it or do you just like the attention? I did plan to open source it... but the reason it's adaptable to change is probably from what I learned in AP Computer Science. That's also how I got the idea of the linked list to figure out how to move them. (Which is also why it runs so fast... the only snake body that moves is the very last one as it becomes the first one. And thanks.
Last Edit: Jul 22, 2008 12:33:01 GMT by Chris
|
|
|
|
|
haha,
I don't think the snake should eat itself. B*st*rd,
That's funny
|
|
|
|
(Which is also why it runs so fast... the only snake body that moves is the very last one as it becomes the first one. I can't imagine doing it any other way. Completely eliminates the need to pivot the snake "manually." I really do like it when people don't over-think these things.
|
|
|
|
(Which is also why it runs so fast... the only snake body that moves is the very last one as it becomes the first one. I can't imagine doing it any other way. Completely eliminates the need to pivot the snake "manually." I really do like it when people don't over-think these things. Yeah... well, originally I was moving every single piece. Then I kinda slapped myself in the head with a "Duh."
|
|
|
|
stoner
Guest
|
Chris , great job! This gme is pretty fun , but I keep on running into a fence!
|
|
|
|
37 apples ftw! Good game chris .
|
|
|
|
|
Chris you've outdone yourself.
|
k
|
|
|
|
Chris you've outdone yourself. Somehow I doubt that. I think getting the highest score possible on a test over a year long course without taking the course and studying for 6 days tops this.
|
|
|
|