Make It Your Own

Now that the game is finished, you can take it anywhere you want. Here are some ideas to get you started. Feel free to do some or all of these, or to start from scratch with your own ideas.

Add another sound effect.

Add a sound effect for when enemies reach the bottom of the screen. Find a sound distinct from the exploding enemy sound to alert the player that one got away.

Write the score on the screen.

Use an instance of Gosu::Font to write the number of enemies destroyed on the screen during the game scene. You’ll need to decide how big to make it, what color, and where.

Make two waves of enemies.

Create a fourth scene that represents another wave of enemies, perhaps with different characteristics. If you made enemies that shoot ...

Get Learn Game Programming with Ruby now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.