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.
@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);
}
2018/1/19
2018/1/19
2018/1/19
2018/1/19
2018/1/19
2018/1/31