Book Image

Raspberry Pi Projects for Kids (Second Edition)

By : Daniel Leonard Bates
Book Image

Raspberry Pi Projects for Kids (Second Edition)

By: Daniel Leonard Bates

Overview of this book

Table of Contents (14 chapters)


So far, we have created the bare minimum required for a game. There are all sorts of extra features we could add, such as the following:

  1. An end-game screen, which shows when all the enemies have been hit or when the main character touches the ground.

  2. Animation when two sprites collide.

  3. A special enemy that gives bonus points.

  4. Barriers that slow the player down.

  5. Power-ups that increase the player's speed or flip gravity, for example.

  6. Extra controls so that the player can continue to affect the character after it has been launched.

I will leave the rest of your game up to you, but here are some example scripts to give you some ideas. Try to work out what they do and where they might go, or just try them out! Some scripts might require minor modifications elsewhere to fit in properly: