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 ...

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.