Skip to content

Instantly share code, notes, and snippets.

@thacuber2a03
Created December 4, 2024 14:37
Show Gist options
  • Save thacuber2a03/168c43ee362e80886b8ac9469c659b90 to your computer and use it in GitHub Desktop.
Save thacuber2a03/168c43ee362e80886b8ac9469c659b90 to your computer and use it in GitHub Desktop.
mirror test (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title mirror test
verbose_logging
========
OBJECTS
========
background .
black
player p
green
hmirror |
lightblue
.000.
.000.
.000.
.000.
.000.
hmirrorext
darkgray
..0..
..0..
..0..
..0..
..0..
hmirrorno
red
..0..
..0..
..0..
..0..
..0..
vmirror -
lightblue
.....
00000
00000
00000
.....
vmirrorext
darkgray
.....
.....
00000
.....
.....
vmirrorno
red
.....
.....
00000
.....
.....
mirrorplayer
white
.....
.000.
.0.0.
.000.
.....
=======
LEGEND
=======
mirror = hmirror or vmirror
mirrorext = hmirrorext or vmirrorext
mirrorno = hmirrorno or vmirrorno
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
hmirrorext hmirrorno
vmirrorext vmirrorno
mirrorplayer
Player mirror
======
RULES
======
(push)
[ > player | mirror ] -> [ > player | > mirror ]
[ > mirror | mirror ] -> [ > mirror | > mirror ]
(cleanup)
[ mirrorext ] -> []
[ mirrorno ] -> []
[ mirrorplayer ] -> []
(extents)
late vertical [ hmirror | no hmirrorext ] -> [ hmirror | hmirrorext ]
+late vertical [ hmirrorext | no hmirrorext ] -> [ hmirrorext | hmirrorext ]
late horizontal [ vmirror | no vmirrorext ] -> [ vmirror | vmirrorext ]
+late horizontal [ vmirrorext | no vmirrorext ] -> [ vmirrorext | vmirrorext ]
(turn extents red if player on top)
late vertical [ hmirrorext | player ] -> [ hmirrorno | player ]
+late vertical [ hmirrorno | hmirrorext ] -> [ hmirrorno | hmirrorno ]
late horizontal [ vmirrorext | player ] -> [ vmirrorno | player ]
+late horizontal [ vmirrorno | vmirrorext ] -> [ vmirrorno | vmirrorno ]
(propagate player)
late horizontal [ player | ... | hmirrorext | ... | no mirrorplayer ] -> [ player | ... | hmirrorext | ... | mirrorplayer ]
late vertical [ player | ... | vmirrorext | ... | no mirrorplayer ] -> [ player | ... | vmirrorext | ... | mirrorplayer ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
...........
...........
...........
.....-.....
...........
...|.p.|...
...........
.....-.....
...........
...........
...........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment