Skip to content

Instantly share code, notes, and snippets.

@Stingby12
Created December 26, 2025 21:20
Show Gist options
  • Select an option

  • Save Stingby12/b09554ec2968bfa3bf45c247d2654228 to your computer and use it in GitHub Desktop.

Select an option

Save Stingby12/b09554ec2968bfa3bf45c247d2654228 to your computer and use it in GitHub Desktop.
Sand monolith (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Sand monolith
author Stingby12 [remix of Zen Puzzle Garden by lexaloffle]
homepage www.puzzlescript.net
require_player_movement
========
OBJECTS
========
Background
orange brown
00100
00000
00010
10000
00000
Rock
grey darkgrey yellow
.100.
11000
11000
11000
11101
Void ■
black
Counter
white
.....
.000.
.000.
.000.
.....
CounterX
gray
.....
.....
.000.
.....
.....
Cursor
transparent
Player
black red
.000.
.010.
.000.
.000.
.000.
Sand
yellow lightbrown
00000
01000
00000
00010
00000
BrushU
orange
.0.0.
.0.0.
.0.0.
.....
.....
BrushD
orange
.....
.....
.0.0.
.0.0.
.0.0.
BrushL
orange
.....
000..
.....
000..
.....
BrushR
orange
.....
..000
.....
..000
.....
CounterTP
transparent
=======
LEGEND
=======
. = Background
# = Rock
O = Rock and Sand
: = Sand
P = Player
Brush = BrushU or BrushD or BrushL or BrushR
Cover = Rock or Brush
@ = Counter and Cursor and Void
+ = Counter and Void
=======
SOUNDS
=======
closemessage 52854909
startgame 64192309
endlevel 16398509
endgame 62100709
Brush create 62210907
sfx0 59811502
sfx1 78098304
Counter destroy 97091906
================
COLLISIONLAYERS
================
Background
Sand
BrushU
BrushD
BrushL
BrushR
Player, Rock, Void
Counter, CounterX
Cursor
CounterTP
======
RULES
======
up [ > Player | BrushD ] -> cancel sfx1
down [ > Player | BrushU ] -> cancel sfx1
left [ > Player | BrushR ] -> cancel sfx1
right [ > Player | BrushL ] -> cancel sfx1
[ up Player BrushU ] -> cancel sfx1
[ down Player BrushD ] -> cancel sfx1
[ left Player BrushL ] -> cancel sfx1
[ right Player BrushR ] -> cancel sfx1
up [ > Player | Sand ] -> [ > Player | BrushD Sand ]
down [ > Player | Sand ] -> [ > Player | BrushU Sand ]
left [ > Player | Sand ] -> [ > Player | BrushR Sand ]
right [ > Player | Sand ] -> [ > Player | BrushL Sand ]
[ up Player Sand ] -> [ up Player BrushU Sand ]
[ down Player Sand ] -> [ down Player BrushD Sand ]
[ left Player Sand ] -> [ left Player BrushL Sand ]
[ right Player Sand ] -> [ right Player BrushR Sand ]
[ > Player no Sand | Sand ] [ Cursor no Counter ] -> cancel sfx0
[ > Player no Sand | Sand ] [ Counter ] -> [ > Player CounterTP | Sand ] [ Counter ]
[ > Player Sand | no Sand ] [ CounterTP ] [ Cursor Counter ] -> [ > Player Sand | ] [] [ right Cursor CounterX ]
==============
WINCONDITIONS
==============
all Sand on Cover
no Player on Sand
=======
LEVELS
=======
message Brush all over the sand then come back to the orange area.
message You can't brush over a sand tile in the same direction
message level 1 of 7 - One stroke
@■■■■■■■■■■■
............
............
............
...::::::...
...::::::...
...::::::...
.p.::oo::...
...::::::...
...::::::...
............
............
............
message level 2 of 7 - One stroke
@■■■■■■■■■■
...........
...#######.
...::::::#.
...::::::#.
.p.::::o:#.
...::::::#.
...#######.
...........
message level 3 of 7 - One stroke
@■■■■■■■■■■
...........
...#######.
...o:::::#.
...o:::::#.
.p.::::o:#.
...::::::#.
...#######.
...........
message level 4 of 7 - Two strokes
@+■■■■■■■■■■
............
............
............
...o::::o...
...::::::...
.p.o::::o...
...::::::...
...o::::o...
............
............
............
message level 5 of 7 - Two strokes
@+■■■■■■■■■■
............
............
............
...o::::o...
...::::::...
.p.o::::o...
...o:::::...
...ooo::o...
............
............
............
message level 6 of 7 - Two strokes
@+■■■■■■■■■■
............
............
............
...o::::o...
...::::::...
.p.o::::o...
...::::::...
...ooo::o...
............
............
............
message Level 7 of 7 - Three strokes
@++■■■■■■■■■
............
............
....###.....
...o:::::...
...::o:o:...
...o:::o:...
.p.::::::...
...o:::::#..
...::o:::#..
......###...
............
............
message Congratulations !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment