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

Comments for Crab in night

Return to Crab in night

A new version of this scenario was uploaded on Sun Apr 15 12:11:24 UTC 2012
A new version of this scenario was uploaded on Sun Apr 15 12:12:54 UTC 2012
A new version of this scenario was uploaded on Sun Apr 15 12:14:06 UTC 2012
A new version of this scenario was uploaded on Wed Apr 25 14:34:58 UTC 2012 Now you get 5 points per worm and a new worm will be added if you eat one
SPowerSPower

2012/4/25

It's great that you use the highscore features of Greenfoot 2.2! Did you find it out yourself, or in another way?
USBestUSBest

2012/4/25

I used your scoreboard class from here: http://www.greenfoot.org/scenarios/4742 (hope I'm alowed to)
SPowerSPower

2012/4/25

Of course! Did you also used the Saver class?
USBestUSBest

2012/4/25

I used the PlayerData class to save the score.
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