Created
December 28, 2022 17:52
-
-
Save pancelor/74439545acdfff9a154f9d78c7ac1abf to your computer and use it in GitHub Desktop.
checkerboard demo (PuzzleScript Script)
This file contains hidden or 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 hidden or 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 checkerboard demo | |
author pancelor | |
homepage pancelor.com | |
run_rules_on_level_start | |
verbose_logging | |
( | |
2 things in this demo: | |
- startup-only rules (player no started) that plays nicely with the level editor | |
- automatic checkboard background | |
- this uses startup rules for speed reasons (untested!!) but it can also run every turn | |
- note: the level editor spews out errors on save, ah well | |
) | |
======== | |
objects | |
======== | |
checker1 | |
lightgreen green | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
checker2 | |
green lightgreen | |
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 | |
started | |
transparent | |
======= | |
legend | |
======= | |
background = checker1 or checker2 | |
. = checker1 | |
# = wall | |
p = player | |
* = crate | |
@ = crate and target | |
o = target | |
======= | |
sounds | |
======= | |
crate move 36772507 | |
endlevel 83744503 | |
startgame 92244503 | |
================ | |
collisionlayers | |
================ | |
background | |
target | |
player, wall, crate | |
started | |
====== | |
rules | |
====== | |
right down [player no started][checker1 | checker1] -> [player][checker1 | checker2] | |
down [player no started][checker2 | checker2] -> [player][checker2 | checker1] | |
[> player | crate] -> [> player | > crate] | |
late [started] -> [] | |
late [player no started] -> [player started] | |
============== | |
winconditions | |
============== | |
( all target on crate ) | |
======= | |
levels | |
======= | |
........... | |
.......o..# | |
.......o..# | |
.......o..# | |
..p.*.*.*.# | |
#.#.#.#.#.# | |
#.........# | |
########### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment