Created
September 22, 2024 21:43
-
-
Save lee2sman/273fa07f113b323622bb0cff06422e49 to your computer and use it in GitHub Desktop.
Phasing Piece (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 Phasing Piece | |
author Not a pipe | |
homepage https://notapipe.itch.io | |
realtime_interval 0.5 | |
noaction | |
( | |
NOTES FOR LIVECODING: | |
- START by hitting RUN and then x or SPACEBAR | |
- live reload by hitting REBUILD | |
- click LEVEL EDITOR for live visual editing | |
- Comment out with parenthesis () | |
- sounds can be changed via changing numbers randomly, having preset sounds ready (as saved commented out numbers - most typical), or by generating sounds and then pasting in | |
- tic interval can be changed at top | |
- this is not technically a sequencer setup as we have random play moves per tic currently | |
- Most of the time you may be working in the Rules section. | |
- ADDING / CHANGING SOUNDS | |
- Part 1: Create new sound effects | |
- Part 2: Add sound effects and variable name to Sounds section | |
- Part 3: Try changing sfx variable name in Rules section. Hit Rebuild for live rebuilding and play. | |
) | |
======== | |
OBJECTS | |
======== | |
trigger1 1 | |
blue | |
trigger2 2 | |
yellow | |
triggera a | |
red | |
triggerb b | |
red | |
Background . | |
white | |
Player p | |
pink | |
wall # | |
black | |
======= | |
LEGEND | |
======= | |
@ = player and trigger1 | |
! = player and trigger2 | |
triggers = trigger1 or trigger2 | |
========= | |
SOUNDS | |
========= | |
sfx0 84514901 | |
sfx1 1822700 | |
sfx2 14583707 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background | |
trigger1, triggera, trigger2, triggerb, triggers | |
Player, wall | |
====== | |
RULES | |
====== | |
( | |
combine rules on same passthrough by prepending + | |
) | |
late [ Player trigger1 ] -> [ Player triggera ] sfx0 | |
late [ triggera No Player ] -> [ trigger1 ] | |
late [ Player trigger2 ] -> [ Player triggerb ] sfx1 | |
late [ triggerb No Player ] -> [ trigger2 ] | |
[ | ... | player | wall ] -> [ player | ... | | wall ] (wrap around from right wall to left - requires end block currently) | |
random right [ Player | ] -> [ | Player ] again | |
random [ triggers | player ] -> [ triggers | player ] sfx2 | |
============== | |
WINCONDITIONS | |
============== | |
======= | |
LEVELS | |
======= | |
@.1.1.1.1.1.1.1.# | |
################# | |
!...2...2...2...# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment