Table of Contents
Foreword |
Acknowledgments |
1. | Introduction |
Ruby and Gosu |
What You’ll Need |
The Road Ahead |
Bumps in the Road |
2. | Get Ready |
Getting Ready with Windows |
Getting Ready with OS X |
What If It Doesn’t Work? |
Install a Text Editor |
Organize Your Workspace |
3. | Creating Your First Game |
Make an Empty Window |
Getting Images for Your Games |
Draw the Ruby |
Move the Ruby |
Make the Ruby Blink |
Add the Hammer |
Keep Score |
Set a Time Limit |
Play Again? |
Make It Your Own |
4. | Creating a Sprite-Based Game |
The Player Class |
Move the Ship |
Make an Enemy |
Make It Your Own |
5. | Managing Lots of Sprites |
Make More Enemies |
Fire Bullets |
Handle Collisions |
Make Animated Explosions |
Cleaning Up Your Arrays |
Make It Your Own |
6. | Adding Scenes and Sounds |
Start Over with Scenes |
End the Game |
Add Music and Sounds |
Make It Your Own ... |
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.