Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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. If you have a little experience programming in Ruby or another language, then you're ready to start making your own video games. In this book you'll learn concepts such as animation, keyboard and mouse movement, sounds and music, and physics as you build four exciting games. Your first game will test your reflexes as you try to click on a ruby that pops in and out of your screen. Learn how to draw images and text, and how to make objects move around the screen. You'll make a space-shooter where you defend your home base from a seemingly endless stream of enemies, as you discover how to use keyboard input, add music and sounds, an opening title screen, and scrolling end-credits. Next up: make a sliding number puzzle game where you'll learn to incorporate more complicated logic and user interaction into your game. Learn all about game physics as you build a game where a bold adventurer must climb out of a pit while dodging bouncing, spinning rocks. Finally, package up your games as Windows and Mac apps so you can share them with your friends. When you're done with this book, you'll have improved your programming skills, and you'll have all the tools you need to make your own arcade-style games.

Author(s): Mark Sobkowicz
Edition: B2.0
Publisher: Pragmatic Bookshelf
Year: 2015

Language: English
Pages: 208

Cover
Table of Contents
Change History
B2.0: 29 June 2015
B1.0: 15 April 2015
Foreword
Acknowledgements
Introduction
Ruby and Gosu
What You'll Need
The Road Ahead
Bumps in the Road
What's Next?
1. Get Ready
Getting Ready with Windows
Getting Ready with OS X
What if it Doesn't Work?
Install a Text Editor
Organize Your Workspace
What's Next
2. 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
What's Next
3. Creating a Sprite-based Game
The Player Class
Move the Ship
Make an Enemy
Make it Your Own
What's Next
4. Managing Lots of Sprites
Make more Enemies
Fire Bullets
Handle Collisions
Make Animated Explosions
Cleaning Up our Arrays
Make it Your Own
What's Next?
5. Adding Scenes and Sounds
Start over with Scenes
End the Game
Add Music and Sounds
Make it Your Own
What's Next?
6. Creating a Puzzle Game
Drawing The Board
Dragging a Square
Turn Rules into Code
Add Visual Feedback
Check All the Moves
Make it Your Own
What's Next
7. Making a Platformer Game with Physics
Use a Physics Engine
Make Boulders Fall
Make Stationary Walls and Platforms
Move a Character with Physics
Add Moving Platforms
Make it Your Own
What's Next
8. Making a Side-Scrolling Game
Use a Camera
Place Platforms Randomly
Shake your Camera
Make it Your Own
What's Next
9. Package and Share Your Game
Packaging for Windows
Packaging for OS X
Share your Game
What's Next
A1. Resources
Documentation
Images and Sounds
Bibliography