Created
September 22, 2022 01:01
-
-
Save schadocalex/8baacad94bc430b2348b99d34a64b714 to your computer and use it in GitHub Desktop.
Warpout from epenser (Puzzlescript Plus 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 https://auroriax.github.io/PuzzleScript/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 Warpout from epenser | |
author schadocalex | |
homepage www.puzzlescript.net | |
noundo | |
realtime_interval 0.75 | |
again_interval 0.04 | |
run_rules_on_level_start | |
tween_length 0.1 | |
======== | |
OBJECTS | |
======== | |
Background | |
#020202 | |
Vortex | |
darkblue | |
VortexUp | |
#222222 #222222 | |
11111 | |
11011 | |
10101 | |
11111 | |
11111 | |
VortexDown | |
#222222 #222222 | |
11111 | |
11111 | |
10101 | |
11011 | |
11111 | |
VortexLeft | |
#222222 #222222 | |
11111 | |
11011 | |
10111 | |
11011 | |
11111 | |
VortexRight | |
#222222 #222222 | |
11111 | |
11011 | |
11101 | |
11011 | |
11111 | |
Player | |
red #222222 | |
00000 | |
01110 | |
01110 | |
01110 | |
00000 | |
AgainFlag | |
red | |
..... | |
..... | |
..0.. | |
..... | |
..... | |
NextPlayer | |
orange | |
00000 | |
0...0 | |
0...0 | |
0...0 | |
00000 | |
MovingUp | |
red | |
..... | |
..0.. | |
.0.0. | |
..... | |
..... | |
MovingDown | |
red | |
..... | |
..... | |
.0.0. | |
..0.. | |
..... | |
MovingLeft | |
red | |
..... | |
..0.. | |
.0... | |
..0.. | |
..... | |
MovingRight | |
red | |
..... | |
..0.. | |
...0. | |
..0.. | |
..... | |
Moved | |
transparent | |
Planet | |
blue | |
PlanetKill | |
blue | |
..... | |
.000. | |
.000. | |
.000. | |
..... | |
Galaxy | |
orange | |
GalaxyKill | |
orange | |
..... | |
.000. | |
.000. | |
.000. | |
..... | |
Spaceship | |
green | |
SpaceshipKill | |
green | |
..... | |
.000. | |
.000. | |
.000. | |
..... | |
Constellation | |
purple | |
ConstellationKill | |
purple | |
..... | |
.000. | |
.000. | |
.000. | |
..... | |
======= | |
LEGEND | |
======= | |
. = Background | |
u = VortexUp | |
d = VortexDown | |
l = VortexLeft | |
r = VortexRight | |
P = Player and Planet | |
N = NextPlayer | |
Vortexes = VortexUp or VortexDown or VortexLeft or VortexRight | |
Movings = MovingUp or MovingDown or MovingLeft or MovingRight | |
Movable = Planet or Galaxy or Spaceship or Constellation | |
MovableKills = PlanetKill or GalaxyKill or SpaceshipKill or ConstellationKill | |
================ | |
SOUNDS | |
================ | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
Vortex | |
Vortexes | |
Player, NextPlayer | |
AgainFlag | |
MovableKills | |
Movable | |
Movings, Moved | |
====== | |
RULES | |
====== | |
(move elements) | |
up [ stationary Player no AgainFlag ] [ Movable VortexUp ] -> [ Player ] [ > Movable VortexUp ] | |
down [ stationary Player no AgainFlag ] [ Movable VortexDown ] -> [ Player ] [ > Movable VortexDown ] | |
left [ stationary Player no AgainFlag ] [ Movable VortexLeft ] -> [ Player ] [ > Movable VortexLeft ] | |
right [ stationary Player no AgainFlag ] [ Movable VortexRight ] -> [ Player ] [ > Movable VortexRight ] | |
(manage next element) | |
[ stationary Player no AgainFlag no Movable ] [ NextPlayer Movable ] -> [ Player Movable ] [ NextPlayer ] | |
[ stationary Player no AgainFlag ] [ NextPlayer no Movable ] -> [ Player ] [ NextPlayer random Movable ] | |
(manage player input) | |
up [ > Player Movable ] -> [ Player Movable MovingUp ] | |
down [ > Player Movable ] -> [ Player Movable MovingDown ] | |
left [ > Player Movable ] -> [ Player Movable MovingLeft ] | |
right [ > Player Movable ] -> [ Player Movable MovingRight ] | |
[ > Player ] -> [ Player ] | |
(manage element throw) | |
("Moved" is for executing the rule only once) | |
[ AgainFlag ] -> [] | |
up [ Movable MovingUp | Vortexes no Movable ] -> [ | Vortexes Movable Moved ] | |
up [ Movable MovingUp ] -> [ Movable ] | |
up [ Player ] [ Movable Moved ] -> [ Player AgainFlag ] [ Movable MovingUp ] again | |
down [ Movable MovingDown | Vortexes no Movable ] -> [ | Vortexes Movable Moved ] | |
down [ Movable MovingDown ] -> [ Movable ] | |
down [ Player ] [ Movable Moved ] -> [ Player AgainFlag ] [ Movable MovingDown ] again | |
left [ Movable MovingLeft | Vortexes no Movable ] -> [ | Vortexes Movable Moved ] | |
left [ Movable MovingLeft ] -> [ Movable ] | |
left [ Player ] [ Movable Moved ] -> [ Player AgainFlag ] [ Movable MovingLeft ] again | |
right [ Movable MovingRight | Vortexes no Movable ] -> [ | Vortexes Movable Moved ] | |
right [ Movable MovingRight ] -> [ Movable ] | |
right [ Player ] [ Movable Moved ] -> [ Player AgainFlag ] [ Movable MovingRight ] again | |
(kill elements) | |
late [ PlanetKill ] -> [ ] | |
late [ Planet no Movings no PlanetKill | Planet no Movings | Planet no Movings ] -> [ Planet PlanetKill | Planet | Planet ] | |
+late [ Planet no Movings | Planet no Movings no PlanetKill | Planet no Movings ] -> [ Planet | Planet PlanetKill | Planet ] | |
late [ Planet PlanetKill ] -> [ PlanetKill ] | |
late [ GalaxyKill ] -> [ ] | |
late [ Galaxy no Movings no GalaxyKill | Galaxy no Movings | Galaxy no Movings ] -> [ Galaxy GalaxyKill | Galaxy | Galaxy ] | |
+late [ Galaxy no Movings | Galaxy no Movings no GalaxyKill | Galaxy no Movings ] -> [ Galaxy | Galaxy GalaxyKill | Galaxy ] | |
late [ Galaxy GalaxyKill ] -> [ GalaxyKill ] | |
late [ SpaceshipKill ] -> [ ] | |
late [ Spaceship no Movings no SpaceshipKill | Spaceship no Movings | Spaceship no Movings ] -> [ Spaceship SpaceshipKill | Spaceship | Spaceship ] | |
+late [ Spaceship no Movings | Spaceship no Movings no SpaceshipKill | Spaceship no Movings ] -> [ Spaceship | Spaceship SpaceshipKill | Spaceship ] | |
late [ Spaceship SpaceshipKill ] -> [ SpaceshipKill ] | |
late [ ConstellationKill ] -> [ ] | |
late [ Constellation no Movings no ConstellationKill | Constellation no Movings | Constellation no Movings ] -> [ Constellation ConstellationKill | Constellation | Constellation ] | |
+late [ Constellation no Movings | Constellation no Movings no ConstellationKill | Constellation no Movings ] -> [ Constellation | Constellation ConstellationKill | Constellation ] | |
late [ Constellation ConstellationKill ] -> [ ConstellationKill ] | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
........... | |
.rrrrrrrrd. | |
.urrrrrrdd. | |
.uurrrrddd. | |
.uuurrdddd. | |
.uuuuPdddd. | |
.uuuullddd. | |
.uuulllldd. | |
.uulllllld. | |
.ullllllll. | |
........... | |
........N.. | |
........... | |
........... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment