Skip to content

Instantly share code, notes, and snippets.

@arya-s
Created September 8, 2021 18:44
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 arya-s/71846c576e76844b526bdb27da47ba8c to your computer and use it in GitHub Desktop.
Save arya-s/71846c576e76844b526bdb27da47ba8c to your computer and use it in GitHub Desktop.
U (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title U
author aryajp
key_repeat_interval 0.25
========
OBJECTS
========
Temp
Black
Background .
darkgreen
Platform p
darkbrown
Water ~
#041d62
Hero h
PINK YELLOW BLACK RED darkbrown
43334
40004
22122
42224
42424
Fish f
BLUE BLACK YELLOW #041d62
33333
30112
01022
00002
30203
HeroFish 1
BLUE BLACK YELLOW RED #041d62
43334
40112
01022
00002
40204
Crate C
#99500f
.....
.000.
.000.
.000.
.....
=======
LEGEND
=======
Player = Hero or HeroFish
Walker = Hero
walkable = Platform
Swimmer = Fish or HeroFish
swimable = Water
=========
SOUNDS
=========
endlevel 97301508
startgame 97301508
endgame 97301508
sfx1 64251308
sfx2 81744108
================
COLLISIONLAYERS
================
Temp
Background
walkable, swimable
Walker, Swimmer, Crate
======
RULES
======
( These rules make it so that the players position is stored, the other entity being taken over and when released
will restore the player at its original position
[ Action ActivePlayer | ... | InactiveGuy ] -> [ Temp | ... | ActiveGuy sfx1]
[ Action ActiveGuy ] [ Temp ] -> [ InactiveGuy ] [ ActivePlayer sfx2]
)
[ Action Hero | ... | Fish ] -> [ Platform | ... | HeroFish sfx1 ]
[ Action HeroFish | walkable ] -> [ Fish | walkable Hero sfx2]
[ > Walker | swimable ] -> cancel
[ > Swimmer | walkable] -> cancel
[ > Walker | ] -> [ walkable | Walker ]
[ > Swimmer | ] -> [ swimable | Swimmer ]
==============
WINCONDITIONS
==============
=======
LEVELS
=======
message level 1 of 10
ph~~~~
pp~~~~
~~~~~~
~f~~pp
~~~~pp
message congratulations!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment