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

Report as inappropriate.

Cett
Cett presents ...

2017/9/28

Chloe

Help Chloe find mushrooms in the Forest! She needs 5 Mushrooms!
(Use Arrow keeys)

2129 views / 5 in the last 7 days

5 votes | 0 in the last 7 days

Tags: game demo cabrillo real_cabrillo_college

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2017-10-05 18:28:03 UTC
A new version of this scenario was uploaded on 2017-10-19 22:51:07 UTC
A new version of this scenario was uploaded on 2017-11-09 00:20:04 UTC
A new version of this scenario was uploaded on 2017-12-05 20:03:33 UTC
Solid_SerpentSolid_Serpent

2018/1/19

This is pretty cool although is in need of some improvements. The counter for mushrooms resets every time you enter a new screen and thus what you have collected is no longer counted. Unless this is intention is believe it to be a good idea to change it.
nolttr21nolttr21

2018/1/19

Cett, if you put the word 'static' right after public in your counter score variable, it won't reset when you enter a new screen.
danpostdanpost

2018/1/19

@nolttr21 Better is to pass the score value (or the Counter object itself -- easier) from world to world by adding an extra World subclass constructor to ALL worlds like this: public MyWorld(Counter counter) { super( // world dimensions addObject(counter, // counter location coordinates // etc. } The original MyWorld constructor can utilize the new one with this: public MyWorld() { this(counter); }
danpostdanpost

2018/1/19

Sorry, second to last line should read as follows: this(new Counter());
nolttr21nolttr21

2018/1/19

yes, that would work better.
CettCett

2018/1/31

Thank you for the tips!

See all comments

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

Who likes this?

Solid_Serpent J.A.M frankleeland EndTEmpire getyourrebelon