This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Snake

Return to Snake

HolyShadowHolyShadow

2009/3/11

good start to a game but you need to slow it down a bit the first couple tries with the arrows led to it speeding off the map and dieing....
NintoNinto

2009/3/11

i think there's something wrong with the score-counter...
NintoNinto

2009/3/11

maybe should make something with the acceleration and deceleration.
NintoNinto

2009/3/11

...but its a good start for a game!
mjrb4mjrb4

2009/3/11

In classic snake, I think it speeds up and down by itself rather than letting you control the acceleration - which probably makes it better in the sense that it's more challenging. Also there's the issue of the snake not eating itself - did you post in Greenfoot discuss a while back about this? If you upload the source we might be able to suggest ways to do what you need.
Drumlind11Drumlind11

2009/3/11

Ninto, if you press up or down, it speeds up/slows down. mjrb4, I have already compressed and uploaded the scenario on Greenfoot Discuss. I will put my updated version on Greenfoot Discuss in a few minutes.
A new version of this scenario was uploaded on Wed Mar 11 20:50:26 UTC 2009
HolyShadowHolyShadow

2009/3/12

i agree that the acceleration and decceleration (sorry for the spelling) is really unneeded just make it to where it speeds up to a certian point and then stops just like mjrb said about the classic snake
mjrb4mjrb4

2009/3/13

Hey, I've had a look at the source - it seems to me like you could put another method in the act method of the head class that checks if it's intercepting with each of the segments. (Use getIntersectingObject(Segment.class) .) If you turn this off for the first two segments say but leave it on for the rest, you should be able to raise a flag and therefore do what you want when the snake has eaten itself.
HolyShadowHolyShadow

2009/3/13

im too addicted to this game....
A new version of this scenario was uploaded on Fri Mar 13 18:54:19 UTC 2009
Drumlind11Drumlind11

2009/3/13

I'm still having a little trouble getting the score to reset when the snake dies.
A new version of this scenario was uploaded on Fri Mar 20 02:19:22 UTC 2009
NintoNinto

2009/3/20

ok Drumlind11. I had just looked at you source-code and figured out how to make the score-thing work: public void uploadScore(java.awt.Color c) { GreenfootImage bar = getImage(); bar.clear(); bar.drawImage(new GreenfootImage("Untitled-1.png"), 0, 0); bar.setColor(c); bar.drawString(""+score, 7, 16); bar.drawString(""+hiScore, 100, 16); } and the in the snakeWorld constructer place the SB at 80, 3 instead of 4.
Drumlind11Drumlind11

2009/3/20

Thanks Ninto
A new version of this scenario was uploaded on Fri Mar 20 14:54:52 UTC 2009
mjrb4mjrb4

2009/3/20

Nice - this is definitely getting there now!
Drumlind11Drumlind11

2009/3/20

And it's all thanks to you and Adrian.
Drumlind11Drumlind11

2009/3/20

and Ninto
A new version of this scenario was uploaded on Fri Mar 20 19:05:18 UTC 2009
NintoNinto

2009/3/20

:\
A new version of this scenario was uploaded on Sat Mar 21 01:15:23 UTC 2009
Drumlind11Drumlind11

2009/3/21

IT'S FINISHED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Drumlind11Drumlind11

2009/3/21

154 = my hiScore
mikmik

2009/3/21

Good work. Nice to see it's done. I got 74...
mjrb4mjrb4

2009/3/21

Oh yeah, 75 ;)
NintoNinto

2009/3/23

one hundred and six. 106 \:
Drumlind11Drumlind11

2009/3/23

im still in first.
mjrb4mjrb4

2009/3/23

156. Oh yeah ;)