Bird's-eye view of a PuzzleScript file

A puzzlescript file is divided into 8 sections:

Levels

Here's where all the fun happens. A level section of a file looks something like this:


#########
#.......#
#.*.*.O.#
#..*..O.#
#.P.*.*.#
#.......#
#########

MESSAGE Woah, that was tough, eh?!


#########
#.....@.#
#.P.*.O.#
#.......#
#########


#########
#.....@.#
#.P.*.O.#     
#.......#
#########

MESSAGE Thank you for playing the game.

Levels are separated by blank lines, and you can also display messages if you want to. If you want to have several objects occupying single tile, you can specify this in the legend using and:

@ = Crate and Target

If you hold CTRL (or, on a Mac, CMD) and left click on the level in the text editor, it will load it in game.

New in PS+

Section and Goto

If you want to use the level_select feature or the GOTO commands, you need to divide your game into named sections.

MESSAGE Select your preferred difficulty setting.

#########
#...P...#
#.E...H.#
#########

SECTION Easy Levels

#########
#.P..*O.#
#########

#########
#.P.*.O.#
#########

GOTO The End

SECTION Hard Levels

#########
#.P..*O.#
#.......#
#########

#########
#.P.....#
#...* O.#
#########

SECTION The End

MESSAGE Congratulations!
You can use a GOTO command to redirect the player to any named section after the preceding level was won.