O'Reilly logo

Learn Game Programming with Ruby by Mark Sobkowicz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7Creating a Puzzle Game

images/twelve/twelve_start.png

In this chapter, you’ll learn to make a completely different kind of game from Sector Five. Your next game, Twelve, is a puzzle game, and is played on a grid of squares.

Players slide colored squares around a board, trying to combine as many like-colored squares as they can. In this game most of the action happens when the player clicks and drags from one square to another. The objects in Twelve are the squares themselves, which stay in place. As successful moves occur, squares change their color and number. To figure out what happens when such a move occurs, you’ll focus on the rules of the game and learn how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required