Extensions

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:

Extensions
Extensions
Extensions
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.167.183