ABSTRACT

Up to this point, we’ve gone through many examples of different aspects of game development. Now let’s pull them together to create a simple game from start to fi nish. In this chapter, we will cover how to create a basic image scramble game we’ll call MixUp. This is a popular type of puzzle game where an image is broken into rectangles on a grid and reshuffl ed. Players must click on these pieces to interchange their positions and ultimately restore the original image. The diffi culty of these puzzles is a combination of the number and size of the rectangles the image is broken into and the amount of detail in the imagery. We’ll create an engine that will support any resolution of source image (within reason and memory restrictions) and divide it dynamically into any number of grid rectangles. We’ll then see how this basic engine can be easily extended to support other source images like video or a live camera feed. Let’s get started!