O'Reilly logo

GameMaker Game Programming with GML by Matthew DeLucas

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

Setting up the puzzle game

Because of the simplicity of creating this puzzle game, there are not a lot of sprite resources needed. You will only need two: one representing an empty grid and another that displays the puzzle pieces. There will, however, also be accompanying object, room, and script resources created; these will be described in the upcoming sections.

Sprites – spr_grid

The spr_grid sprite represents a single grid block where a piece of the puzzle will be placed. It has only one subimage for now. Load this sprite by clicking on Load Sprite and navigating to PuzzleGame00 | sprites | Images | spr_grid_0 from the code folder for this chapter. This sprite is 72 pixels square with a centered origin at 36, both horizontally and vertically. ...

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