Skip to content

Instantly share code, notes, and snippets.

@m-ender
Created June 2, 2025 19:12
Show Gist options
  • Select an option

  • Save m-ender/70a24d3aa082d51071f1634f67926375 to your computer and use it in GitHub Desktop.

Select an option

Save m-ender/70a24d3aa082d51071f1634f67926375 to your computer and use it in GitHub Desktop.
Sokoyote (Puzzlescript Next Script)
Play this game by pasting the script into https://david-pfx.github.io/PuzzleScriptNext/src/editor.html
title Sokoyote
author Menderbug
homepage https://brokensign.com/
run_rules_on_level_start
// enable comments
========
OBJECTS
========
Background
lightgrey grey
00010
11111
01000
11111
00010
Target
darkblue
.....
.000.
.0.0.
.000.
.....
Wall
brown darkbrown
00010
11111
01000
11111
00010
Player
black orange white blue
.000.
.111.
22222
.333.
.3.3.
PlayerJumping
black orange white blue
.000.
21112
.222.
.333.
3...3
Crate
pink orange brown
.111.
12211
21121
21110
.2000
CornerBG:directions
brown
....0
.....
.....
.....
.....
rot:right:>
CornerWall:directions
lightgrey
....0
.....
.....
.....
.....
rot:right:>
Temp:directions; pink
Temp; pink
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Crate
@ = Crate and Target
O = Target
CornerBG = CornerBG:directions
CornerWall = CornerWall:directions
=======
SOUNDS
=======
Crate move 36772507
================
COLLISIONLAYERS
================
Background
directions -> CornerBG:directions
Target
Player, PlayerJumping, Wall, Crate
directions -> CornerWall:directions
directions -> Temp:directions
Temp
======
RULES
======
[ no Wall | Wall ] -> [ CornerBG:> Temp:> | Wall ]
[ CornerBG:v Temp:v | Wall ] -> [ CornerBG:v | Wall ]
[ CornerBG:> Temp:> ] -> [ ]
[ Temp ] -> [ ]
[ CornerBG:> | no Wall ] -> [ | ]
[ CornerBG:v | no Wall ] -> [ | ]
[ Wall ] -> [ Wall CornerWall:< CornerWall:v CornerWall:> CornerWall:^ ]
[ CornerWall:> | Wall ] -> [ | Wall ]
[ CornerWall:v | Wall ] -> [ | Wall ]
[ > Player | Crate ] -> [ > Player | > Crate ]
==============
WINCONDITIONS
==============
all Target on Crate
=======
LEVELS
=======
####..
#.O#..
#..###
#@P..#
#..*.#
#..###
####..
######
#....#
#.#P.#
#.*@.#
#.O@.#
#....#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment