Created
April 15, 2019 02:33
-
-
Save pancelor/12b0cb0bd096b208d414fafb025a563e to your computer and use it in GitHub Desktop.
clone (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 clone | |
author pancelor | |
homepage https://twitter.com/pancelor | |
verbose_logging | |
(a wip thing to see if i can record and replay input in-game) | |
======== | |
objects | |
======== | |
background . | |
lightgreen green | |
11111 | |
10111 | |
11101 | |
11111 | |
01111 | |
wall # | |
brown darkbrown | |
00010 | |
11111 | |
01000 | |
11111 | |
00010 | |
hero | |
black orange white blue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
clone c | |
orange lightgreen brown blue | |
.000. | |
.111. | |
22222 | |
.333. | |
.3.3. | |
crate @ | |
orange yellow | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
mr | |
white | |
..... | |
..0.. | |
...0. | |
..0.. | |
..... | |
mu | |
white | |
..... | |
..0.. | |
.0.0. | |
..... | |
..... | |
ml | |
white | |
..... | |
..0.. | |
.0... | |
..0.. | |
..... | |
md | |
white | |
..... | |
..... | |
.0.0. | |
..0.. | |
..... | |
cursor ! | |
white | |
00.00 | |
0...0 | |
..... | |
0...0 | |
00.00 | |
player | |
transparent | |
replay | |
transparent | |
tempcursor | |
transparent | |
======= | |
legend | |
======= | |
p = player and hero | |
mdir = mr or mu or ml or md | |
solid = hero or clone or crate or wall | |
push = hero or clone or crate | |
======= | |
sounds | |
======= | |
(crate move 36772507) | |
================ | |
collisionlayers | |
================ | |
background | |
player replay | |
hero clone wall crate | |
mr mu ml md | |
cursor tempcursor | |
======= | |
rules | |
====== | |
right [> player][cursor][hero] -> [player][cursor mr][> hero] | |
up [> player][cursor][hero] -> [player][cursor mu][> hero] | |
left [> player][cursor][hero] -> [player][cursor ml][> hero] | |
down [> player][cursor][hero] -> [player][cursor md][> hero] | |
[player][> hero | push] -> [player][> hero | > push] | |
right [player][cursor mr | no mdir] -> [player][mr | tempcursor] | |
right [player][cursor mu | no mdir] -> [player][mu | tempcursor] | |
right [player][cursor ml | no mdir] -> [player][ml | tempcursor] | |
right [player][cursor md | no mdir] -> [player][md | tempcursor] | |
late [player][cursor] -> cancel (ran out of room to record moves) | |
late [player][tempcursor] -> [player][cursor] | |
right [action player][| ... | cursor] -> [replay][cursor | ... |] (rewind) | |
right [replay][clone][cursor mdir] -> [replay][clone mdir][tempcursor] | |
right [replay][clone mr] -> [replay][> clone] | |
up [replay][clone mu] -> [replay][> clone] | |
left [replay][clone ml] -> [replay][> clone] | |
down [replay][clone md] -> [replay][> clone] | |
[replay][> clone | push] -> [replay][> clone | > push] | |
[> push | push] -> [> push | > push] | |
late right [replay][tempcursor | mdir] -> [replay][| cursor mdir] again | |
late right [replay][|...|tempcursor] -> [player][cursor|...|] (if the above rule didn't work b/c the replay is over) | |
============== | |
winconditions | |
============== | |
======= | |
levels | |
======= | |
######## | |
#......# | |
#......# | |
#...@..# | |
#...@..# | |
#.p.c..# | |
#......# | |
#......# | |
######## | |
!....... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment