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

Report as inappropriate.

USBest
USBest presents ...

2012/4/15

Crab in night

Control with the arrow keys and try to eat all Worms.
The worms change location after a while.
There are although two lobster, that will eat you!

I used following scenarios / codes for creating this one:
http://www.greenfoot.org/scenarios/4794
http://www.greenfoot.org/scenarios/4873
http://www.greenfoot.org/topics/find/1599#post_1599

4742 views / 20 in the last 7 days

5 votes | 0 in the last 7 days

Tags: game crab night

Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
USBestUSBest

2012/4/25

What is the saver class for?
SPowerSPower

2012/4/25

Of course, but in Crabs on the beach is a Saver class, which has a save(int score) method. Did copy that class or did you just copy the method?
SPowerSPower

2012/4/25

Saver is the class I wrote to save your highscores.
USBestUSBest

2012/4/25

No, I used: PlayerData Datas = PlayerData.getMyData(); if(Datas!=null){ Datas.setScore(wormsEaten*5);Datas.store(); addObject(new ScoreBoard(getWidth(),getHeight()),getWidth()/2,getHeight()/2);}
SPowerSPower

2012/4/25

Ok, but thank you that you follow me :)
Busch2207Busch2207

2012/4/25

USBest... There is a small mistake in your code... You always save the current score and not the highest one! ;)
A new version of this scenario was uploaded on Wed Apr 25 15:24:40 UTC 2012
A new version of this scenario was uploaded on Wed Apr 25 15:26:01 UTC 2012
A new version of this scenario was uploaded on Wed Apr 25 15:30:42 UTC 2012
A new version of this scenario was uploaded on Wed Apr 25 15:33:16 UTC 2012

See all comments

Want to leave a comment? You must first log in.

Who likes this?

JetLennit tylers SPower mik Busch2207