7. Extensions

This concludes the walkthrough for a simple Greenfoot game! Try a combination of the suggestions below to add complexity to your game:

  • Add multiplayer functionality - create a second main character and have them move using different keys (e.g. WASD). Don't forget to save the world when you have dragged the new objects over.

  • Make the collectables randomly move to make it harder.

  • Add ‘bad’ collectables that decrease the score if they are picked up. Type -1 instead of 1 when you add the score method.

  • Make the enemies pick up collectables too. Add the IsTouching code to the enemy code.

  • Have one type of collectable for player 1 and another for player 2, if the wrong collectable is picked up by a player, have them lose a point.

© CSNewbs 2020