Skip to content

Instantly share code, notes, and snippets.

@pancelor
Created June 23, 2020 22:17
Show Gist options
  • Save pancelor/a6d6431a1f33be7c2a86a9b294ec76db to your computer and use it in GitHub Desktop.
Save pancelor/a6d6431a1f33be7c2a86a9b294ec76db to your computer and use it in GitHub Desktop.
Grouping Test (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Grouping Test
author pancelor
homepage www.twitter.com/pancelor
again_interval 0.05
run_rules_on_level_start
(verbose_logging)
========
OBJECTS
========
Background
LIGHTGREEN GREEN
11111
01111
11101
11111
10111
Mover
white
.0000
...00
..0.0
.0..0
0....
Trail
red
.....
.000.
.000.
.000.
.....
Wall
BROWN DARKBROWN
00010
11111
01000
11111
00010
Player
Black Orange White Blue
.000.
.111.
22222
.333.
.3.3.
=======
LEGEND
=======
. = Background
# = Wall
@ = Player
m = Mover
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Trail
Player, Wall
Mover
======
RULES
======
[Mover] -> []
[Trail] -> []
late [Player] -> [Player Mover]
late right [Mover | no Wall] -> [Trail | Mover]
+late up [Mover | no Wall] -> [Trail | Mover]
==============
WINCONDITIONS
==============
no Player
=======
LEVELS
=======
############
#..........#
#.@........#
#..........#
#..........#
#..........#
#..........#
#..........#
############
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment