Created
August 22, 2022 10:36
-
-
Save increpare/083dd562d4a4a66ff4861bd92ec68084 to your computer and use it in GitHub Desktop.
Simple Block Pushing Game (PuzzleScript Script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title Simple Block Pushing Game | |
author David Skinner | |
homepage www.puzzlescript.net | |
noaction | |
======== | |
OBJECTS | |
======== | |
Background | |
lightgreen green | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
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. | |
Crate | |
orange | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
push_u | |
transparent | |
push_d | |
transparent | |
push_l | |
transparent | |
push_r | |
transparent | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = Player | |
* = Crate | |
@ = Crate and Target | |
O = Target | |
obstacle = crate or wall | |
push = push_u or push_d or push_l or push_r | |
push_dlr = push_d or push_l or push_r | |
push_ulr = push_u or push_l or push_r | |
push_udr = push_u or push_d or push_r | |
push_udl = push_u or push_d or push_l | |
SOUNDS | |
======= | |
Crate move 36772507 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Target | |
Player, Wall, Crate | |
push_u | |
push_d | |
push_l | |
push_r | |
====== | |
RULES | |
====== | |
[ player push_u ] -> [ up player ] | |
[ player push_d ] -> [ down player ] | |
[ player push_l ] -> [ left player ] | |
[ player push_r ] -> [ right player ] | |
[ > Player | Crate ] -> [ > Player | > Crate ] | |
late [ push ] -> [ ] | |
late up [ player | crate | no obstacle ] -> [ player push_u | crate | ] | |
late down [ player | crate | no obstacle ] -> [ player push_d | crate | ] | |
late left [ player | crate | no obstacle ] -> [ player push_l | crate | ] | |
late right [ player | crate | no obstacle ] -> [ player push_r | crate | ] | |
late [ push_u push_dlr ] -> [ ] | |
late [ push_d push_ulr ] -> [ ] | |
late [ push_l push_udr ] -> [ ] | |
late [ push_r push_udl ] -> [ ] | |
late [ push ] -> again | |
============== | |
WINCONDITIONS | |
============== | |
all Target on Crate | |
============== | |
LEVELS | |
============== | |
########## | |
#........# | |
#...*.o..# | |
#.p.*..o.# | |
#...*.o..# | |
#........# | |
########## | |
......##### | |
......#O..# | |
......#O#.# | |
#######O#.# | |
#.P.*.*.*.# | |
#.#.#.#.### | |
#.......#.. | |
#########.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment