Skip to content

Instantly share code, notes, and snippets.

@quantumpotato
Created December 6, 2022 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantumpotato/f906142561daecc45b2e8f05b25235ba to your computer and use it in GitHub Desktop.
Save quantumpotato/f906142561daecc45b2e8f05b25235ba to your computer and use it in GitHub Desktop.
Leaping Leprechaun (Puzzlescript Plus Script)
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html
title Leaping Leprechaun
author quantumpotato
homepage auroriax.github.io/PuzzleScript
tween_length 0.03
smoothscreen 17x17
level_select
runtime_metadata_twiddling
text_controls an adventure in teleportitis
========
OBJECTS
========
Background
LIGHTGRAY GRAY
11111
11111
11111
11111
11111
Wall copy:Background
DARKGRAY BLACK
Player11
green yellow black
00000
00000
00100
00000
00000
Player21
green yellow black
00000
00000
01020
00000
00000
Player22
green yellow black
00000
00000
01010
00000
00000
Player33
green yellow black
00000
01010
00000
00100
00000
Player32
green yellow black
00000
01010
00000
00200
00000
Player31
green yellow black
00000
01020
00000
00200
00000
PlayerWalker
Blue
PlayerJumper
Green
PlayerGoal
White
Crate
Orange
CrateGoal
darkbrown
Fence
Red
=======
LEGEND
=======
Player = Player11 or Player22 or Player33 or Player21 or Player32 or Player31
. = Background
# = Wall
1 = Player11
2 = Player22
3 = Player33
W = PlayerWalker
J = PlayerJumper
* = Crate
@ = Crate and CrateGoal
O = CrateGoal
G = PlayerGoal
F = Fence
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
PlayerGoal, CrateGoal
PlayerWalker, PlayerJumper, Fence, Player, Player11, Player22, Player33, Player21, Player31, Player32, Wall
Crate
======
RULES
======
(Wall Collisions)
[ > Player11 | Wall ] -> [ Player11 | Wall]
[ > Player22 | | Wall ] -> [ Player22 | | Wall ]
[ > Player33 | | | Wall ] -> [ Player33 | | | Wall]
[ > Player21 | Crate | Crate] -> [ Player21 | Crate | Crate ]
[ > Player32 | | Wall | Wall] -> [ Player32 | | Wall | Wall]
[ > Player11 | Crate | Wall] -> [ Player11 | Crate | Wall ]
(Player2 moving with its last movement onto a Crate moves just before and has 1 movement left)
[ > Player22 | | Crate | Crate ] -> [ | Player21 | Crate | Crate ]
[ > Player22 | | Crate | Wall] -> [ > Player22 | | Crate | Wall]
[ > Player22 | | Crate | Wall] -> [ | Player21 | Crate | Wall ]
(Player3 moving with its last movement onto a Crate moves just before and has 1 movement left)
[ > Player33 | | | Crate | Crate ] -> [ | | Player31 | Crate | Crate ]
[ > Player33 | no Wall | no Wall | Crate | Wall ] -> [ | | Player31 | Crate | Wall ]
[ > Player33 | | Crate | Crate ] -> [ | Player32 | Crate | Crate ]
[ > Player33 | | | Crate | Wall ] -> [ | | Player32 | Crate | Wall ]
(Player1 can push a crate from 1 distance away)
[ > Player11 | Crate | no Crate no Wall] -> [Player22 | | Crate]
[ > Player21 | Crate | no Crate no Wall] -> [Player33 | | Crate]
[ > Player31 | Crate | no Crate no Wall] -> [Player11 | | Crate]
[ > Player31 | no Wall ] -> [ | Player11 ]
(Player2 can push a crate from 2 distance away)
[ > Player22 | | Crate | no Crate no Wall] -> [ Player33 | | | Crate ]
[ > Player32 | | Crate | no Crate no Wall] -> [ Player11 | | | Crate ]
(Player3 can push a crate from 3 distance away)
[ > Player33 | | | Crate | no Crate no Wall] -> [ Player11 | | | | Crate ]
[ > Player33 | | | no Background] -> [ Player33 | | | ]
[ > Player11 | Crate | Crate] -> [ Player11 | Crate | Crate]
[ > Player31 | Crate | Crate] -> [ Player31 | Crate | Crate]
[ > Player21 | Crate | Crate] -> [ Player21 | Crate | Crate]
(Morphing player)
[ > Player11 | ] -> [ | Player22]
[ > Player22 | | ] -> [ | | Player33 ]
[ > Player33 | | | ] -> [ | | | Player11]
[ > Player32 | | ] -> [ | | Player11]
[ > Player21 | ] -> [ | Player33]
([ > PlayerJumper | Fence | Fence ] -> [ PlayerJumper | Fence | Fence ]
[ > PlayerJumper | Fence | ] -> [Background | Fence | PlayerWalker ])
==============
WINCONDITIONS
==============
All PlayerGoal on Player
All Crate on CrateGoal
(or Any Player2 on PlayerGoal)
(All Target on Crate)
=======
LEVELS
=======
message As easy as 1, 2, 3
section As easy as 1, 2, 3
#################
#################
#################
###...........###
###...........###
###.....G...1.###
###...........###
###...........###
###...........###
#################
#################
#################
message Exclusion Principle
section Exclusion Principle
#################
#################
#################
###...........###
###....O......###
###...*..1....###
###...........###
###...........###
###...........###
#################
#################
#################
message Stored Charge
section Stored Charge
#################
#################
#################
#################
#######O..##..###
######.**.O1..###
#########.....###
########......###
#################
#################
#################
#################
message Crevice
section Crevice
#################
#################
#################
#################
####....O..######
####.##*O....1###
####....*..######
#################
#################
#####......######
#################
#################
message Spooky Action
section Spooky Action
#################
#################
#################
#####..O*#.######
####..O.*..######
####.##....######
####....1..######
####.......######
#################
#################
#################
#################
message Parity 'Schmarity
section Parity 'Schmarity
#################
#################
#################
####...1...######
####.......######
####...O...######
####O*.*#..######
####.......######
####.......######
#################
#################
#################
message 2 out of 3 ain't bad
section 2 out of 3 aint' bad
#################
#################
#################
#################
######1....######
#####......######
#####...@*.######
#####...@O.######
######.....######
#################
#################
#################
message Cramped
section Cramped
#################
#################
#################
####.......######
####.O*.*O.######
####...1...######
####.O*.*O.######
####.......######
#################
#################
#################
#################
message Thanks for playing!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment