You are previewing Learn Game Programming with Ruby.
O'Reilly logo
Learn Game Programming with Ruby

Book Description

Level up your programming skills while making fast-paced, arcade-style video games. Make enemy spaceships explode in balls of fire, and escape from a pit while dodging falling boulders. You'll use the fun and approachable Ruby programming language and the Gosu 2D game library, which makes making games a breeze. Gain the skills and techniques you need to bring your own video game ideas to life with moving images and thumping sounds.

Table of Contents

  1. Learn Game Programming with Ruby
    1. For the Best Reading Experience...
    2. Table of Contents
    3. Early praise for Learn Game Programming with Ruby
    4. Foreword
    5. Acknowledgments
    6. Chapter 1: Introduction
      1. Ruby and Gosu
      2. What You’ll Need
      3. The Road Ahead
      4. Bumps in the Road
      5. What’s Next
    7. Chapter 2: Get Ready
      1. Getting Ready with Windows
      2. Getting Ready with OS X
      3. What If It Doesn’t Work?
      4. Install a Text Editor
      5. Organize Your Workspace
      6. What’s Next
    8. Chapter 3: Creating Your First Game
      1. Make an Empty Window
      2. Getting Images for Your Games
      3. Draw the Ruby
      4. Move the Ruby
      5. Make the Ruby Blink
      6. Add the Hammer
      7. Keep Score
      8. Set a Time Limit
      9. Play Again?
      10. Make It Your Own
      11. What’s Next
    9. Chapter 4: Creating a Sprite-Based Game
      1. The Player Class
      2. Move the Ship
      3. Make an Enemy
      4. Make It Your Own
      5. What’s Next
    10. Chapter 5: Managing Lots of Sprites
      1. Make More Enemies
      2. Fire Bullets
      3. Handle Collisions
      4. Make Animated Explosions
      5. Cleaning Up Your Arrays
      6. Make It Your Own
      7. What’s Next
    11. Chapter 6: Adding Scenes and Sounds
      1. Start Over with Scenes
      2. End the Game
      3. Add Music and Sounds
      4. Make It Your Own
      5. What’s Next
    12. Chapter 7: Creating a Puzzle Game
      1. Drawing the Board
      2. Dragging a Square
      3. Turn Rules into Code
      4. Add Visual Feedback
      5. Check All the Moves
      6. Make It Your Own
      7. What’s Next
    13. Chapter 8: Making a Platformer Game with Physics
      1. Use a Physics Engine
      2. Make Boulders Fall
      3. Make Stationary Walls and Platforms
      4. Use Physics to Move a Character
      5. Add Moving Platforms
      6. Make It Your Own
      7. What’s Next
    14. Chapter 9: Making a Side-Scrolling Game
      1. Use a Camera
      2. Place Platforms Randomly
      3. Shake Your Camera
      4. Make It Your Own
      5. What’s Next
    15. Chapter 10: Package and Share Your Game
      1. Packaging for Windows
      2. Packaging for OS X
      3. Share Your Game
      4. What’s Next
    16. Appendix 1: Resources
      1. Documentation
      2. Images and Sounds
    17. Bibliography
      1. You May Be Interested In…