Created
February 22, 2022 10:41
-
-
Save jjmajava/264bae4d23071ce995fdd0ad503b15c8 to your computer and use it in GitHub Desktop.
Untitled 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 PAC-BOY | |
run_rules_on_level_start | |
realtime_interval 0.01 | |
key_repeat_interval 0.02 | |
======== | |
OBJECTS | |
======== | |
background - | |
black | |
wallcolor | |
darkgreen | |
spot x | |
yellow | |
player r | |
transparent | |
tick t ' | |
red | |
GoD | |
transparent | |
GoL | |
transparent | |
GoR | |
transparent | |
GoU | |
transparent | |
Act | |
transparent | |
Wait32 w32 | |
transparent | |
Wait16 w16 | |
transparent | |
Wait8 w8 | |
transparent | |
Wait4 w4 | |
transparent | |
Wait2 w2 | |
transparent | |
Wait1 w1 | |
transparent | |
CD | |
transparent | |
Temp1 t1 | |
transparent | |
Temp2 t2 | |
transparent | |
Temp3 t3 | |
transparent | |
turn 1 | |
transparent | |
slowturn 2 | |
transparent | |
fastturn 3 | |
transparent | |
( | |
wallup wu | |
blue | |
..000 | |
..000 | |
..000 | |
..000 | |
...0. | |
walldown wd | |
blue | |
..... | |
..... | |
...0. | |
..000 | |
..000 | |
wallleft wl | |
blue | |
..... | |
..... | |
0000. | |
00000 | |
0000. | |
wallright wr | |
blue | |
..... | |
..... | |
...00 | |
..000 | |
...00 | |
) | |
wallv wv ┃ | |
purple | |
...0. | |
...0. | |
...0. | |
...0. | |
...0. | |
wallh wh ━ | |
purple darkblue | |
..... | |
..... | |
..... | |
00000 | |
11111 | |
cornertl ctl ┏ | |
purple darkblue | |
..... | |
..... | |
..... | |
....0 | |
...01 | |
cornerbl cbl ┗ | |
purple darkblue | |
...0. | |
...0. | |
...0. | |
...10 | |
....1 | |
cornertr ctr ┓ | |
purple darkblue | |
..... | |
..... | |
..... | |
000.. | |
1110. | |
cornerbr cbr ┛ | |
purple darkblue | |
...0. | |
...0. | |
...0. | |
0001. | |
111.. | |
pacmanD1 pcD1 @ | |
yellow | |
.0000 | |
00000 | |
0.000 | |
00000 | |
0.... | |
pacmanD2 pcD2 | |
yellow | |
.0000 | |
00000 | |
0.000 | |
00000 | |
00000 | |
pacman2a pc2a | |
yellow | |
0.... | |
00... | |
.0... | |
00... | |
.0... | |
pacman2b pc2b | |
yellow | |
0.... | |
00... | |
.0... | |
00... | |
00... | |
pacman3a pc3a | |
yellow | |
00... | |
.0000 | |
..... | |
..... | |
..... | |
pacman4a pc4a | |
yellow | |
00... | |
0.... | |
..... | |
..... | |
..... | |
pacmanU pcU | |
yellow | |
.0000 | |
00000 | |
00000 | |
00000 | |
00000 | |
pacman2c pc2c | |
yellow | |
0.... | |
00... | |
00... | |
00... | |
00... | |
pacman3b pc3b | |
yellow | |
00000 | |
.0000 | |
..... | |
..... | |
..... | |
pacmanL1 pcL1 | |
yellow | |
.0000 | |
00000 | |
0000. | |
00000 | |
...00 | |
pacmanL2 pcL2 | |
yellow | |
.0000 | |
00000 | |
0000. | |
..000 | |
...00 | |
pacman3c pc3c | |
yellow | |
..000 | |
.0000 | |
..... | |
..... | |
..... | |
pacmanR1 pcR1 | |
yellow | |
.0000 | |
00000 | |
00.00 | |
00000 | |
0000. | |
pacman2d pc2d | |
yellow | |
0.... | |
00... | |
00... | |
00... | |
..... | |
pacmanR2 pcR2 | |
yellow | |
.0000 | |
00000 | |
00.00 | |
00000 | |
0000. | |
pacman2e pc2e | |
yellow | |
0.... | |
00... | |
00... | |
..... | |
..... | |
pacman4b pc4b | |
yellow | |
..... | |
0.... | |
..... | |
..... | |
..... | |
pill . | |
orange | |
..... | |
..... | |
..... | |
...0. | |
..... | |
bigpill o | |
orange | |
..... | |
..... | |
..000 | |
..000 | |
..000 | |
blinky1 b1 b | |
white blue red | |
.2222 | |
22222 | |
00200 | |
10210 | |
22222 | |
blinky2 b2 | |
white blue red | |
2.... | |
22... | |
22... | |
22... | |
22... | |
blinky3 b3 | |
white blue red | |
22222 | |
2.2.2 | |
..... | |
..... | |
..... | |
blinky4 b4 | |
white blue red | |
22... | |
.2... | |
..... | |
..... | |
..... | |
pinky1 p1 p | |
white blue lightred | |
.2222 | |
22222 | |
00200 | |
10210 | |
22222 | |
pinky2 p2 | |
white blue lightred | |
2.... | |
22... | |
22... | |
22... | |
22... | |
pinky3 p3 | |
white blue lightred | |
22222 | |
2.2.2 | |
..... | |
..... | |
..... | |
pinky4 p4 | |
white blue lightred | |
22... | |
.2... | |
..... | |
..... | |
..... | |
inky1 i1 i | |
white blue lightblue | |
.2222 | |
22222 | |
00200 | |
10210 | |
22222 | |
inky2 i2 | |
white blue lightblue | |
2.... | |
22... | |
22... | |
22... | |
22... | |
inky3 i3 | |
white blue lightblue | |
22222 | |
2.2.2 | |
..... | |
..... | |
..... | |
inky4 i4 | |
white blue lightblue | |
22... | |
.2... | |
..... | |
..... | |
..... | |
clyde1 c1 c | |
white blue lightbrown | |
.2222 | |
22222 | |
00200 | |
10210 | |
22222 | |
clyde2 c2 | |
white blue lightbrown | |
2.... | |
22... | |
22... | |
22... | |
22... | |
clyde3 c3 | |
white blue lightbrown | |
22222 | |
2.2.2 | |
..... | |
..... | |
..... | |
clyde4 c4 | |
white blue lightbrown | |
22... | |
.2... | |
..... | |
..... | |
..... | |
gate1 = | |
darkblue black | |
11111 | |
11111 | |
11111 | |
10000 | |
10000 | |
gate2 | |
darkblue black | |
11111 | |
11111 | |
11111 | |
00000 | |
00000 | |
gate3 | |
darkblue black purple | |
11111 | |
11111 | |
11111 | |
00122 | |
00100 | |
teleport1 tele1 z | |
darkblue | |
..... | |
..... | |
...00 | |
..00. | |
...00 | |
teleport2 tele2 y | |
darkblue | |
..... | |
..... | |
..00. | |
...00 | |
..00. | |
leftcutter | |
black | |
00... | |
00... | |
00... | |
00... | |
00... | |
======= | |
LEGEND | |
======= | |
pcL = pcL1 or pcL2 | |
pcR = pcR1 or pcR2 | |
pcD = pcD1 or pcD2 | |
pacman = pcU or pcD or pcR or pcL | |
pcresidue = pc2a or pc2b or pc2c or pc2d or pc2e or pc3a or pc3b or pc3c or pc4a or pc4b | |
blinky = blinky1 or blinky2 or blinky3 or blinky4 | |
pinky = pinky1 or pinky2 or pinky3 or pinky4 | |
inky = inky1 or inky2 or inky3 or inky4 | |
clyde = clyde1 or clyde2 or clyde3 or clyde4 | |
ghost = blinky or pinky or inky or clyde | |
wall = wh or wv or ctr or ctl or cbr or cbl | |
residue = pc2a or pc2b or pc2c or pc2d or pc2e or pc3a or pc3b or pc3c or pc4a or pc4b or blinky2 or blinky3 or blinky4 or pinky2 or pinky3 or pinky4 or inky2 or inky3 or inky4 or clyde2 or clyde3 or clyde4 | |
gate = gate1 or gate2 or gate3 | |
S = Spot and Tick and player | |
W = W1 or W2 or W4 or W8 or W16 or W32 | |
Go = GoU or GoD or GoL or GoR | |
GoV = GoU or GoD | |
GoH = GoL or GoR | |
======= | |
SOUNDS | |
======= | |
sfx0 53820303 | |
sfx1 12622508 | |
pacman destroy 33446308 | |
( | |
random : 52595308 | |
random : 3434308 | |
random : 56865108 | |
random : 36881108 | |
random : 89674508 | |
random : 74012708 | |
random : 32170308 | |
random : 15044108 | |
random : 67971708 | |
random : 77325908 | |
random : 40796308 | |
) | |
(pacman move 45847307) | |
pill destroy 74101703 (59278508 83183903) (95631303) (98192903) | |
bigpill destroy 72282303 | |
================ | |
COLLISIONLAYERS | |
================ | |
background | |
wallcolor | |
teleport1 | |
teleport2 | |
pill bigpill | |
pacman wall gate | |
pcresidue | |
clyde | |
inky | |
pinky | |
blinky | |
leftcutter | |
tick | |
w1 | |
w2 | |
w4 | |
w8 | |
w16 | |
w32 | |
cd | |
temp1 | |
temp2 | |
temp3 | |
spot 1 2 3 | |
act | |
go | |
player | |
====== | |
RULES | |
====== | |
( Ticks and movement instructions ) | |
[ X ] -> [ X T ] | |
[ left player ][ X T ] -> [ player ][ X GoL no T ] | |
[ right player ][ X T ] -> [ player ][ X GoR no T ] | |
[ up player ][ X T ] -> [ player ][ X GoU no T ] | |
[ down player ][ X T ] -> [ player ][ X GoD no T ] | |
[ action player ][ X T ] -> [ player ][ X Act no T ] | |
( Eat pills ) | |
late [ pacman pill ] -> [ pacman ] | |
late [ pacman bigpill ] -> [ pacman ] | |
( GHOST HUNT ) | |
( Blinky - Follows Pac-Man ) | |
( PACMAN MOVES ) | |
['][ 1 no w ][ r GoL ][ pacman ] -> ['][ 1 ][ r ][ left pacman ] | |
['][ 1 no w ][ r GoR ][ pacman ] -> ['][ 1 ][ r ][ right pacman ] | |
['][ 1 no w ][ r GoU ][ pacman ] -> ['][ 1 ][ r ][ up pacman ] | |
['][ 1 no w ][ r GoD ][ pacman ] -> ['][ 1 ][ r ][ down pacman ] | |
( Teleport) | |
[ tele1 ][ background | tele2 > pacman ] -> [ tele1 pacman ][ background | tele2 ] sfx0 | |
[ tele2 ][ background | tele1 > pacman ] -> [ tele2 pacman ][ background | tele1 ] sfx0 | |
( Build pacman and ghosts ) | |
late [ residue ] -> [ ] | |
late right [ pcD | ] -> [ pcD | pc2a ] | |
late down [ pcD | ] -> [ pcD | pc3a ] | |
late right [ pc3a | ] -> [ pc3a | pc4a ] | |
late right [ b1 | ] -> [ b1 | b2 ] | |
late down [ b1 | ] -> [ b1 | b3 ] | |
late right [ b3 | ] -> [ b3 | b4 ] | |
late right [ p1 | ] -> [ p1 | p2 ] | |
late down [ p1 | ] -> [ p1 | p3 ] | |
late right [ p3 | ] -> [ p3 | p4 ] | |
late right [ i1 | ] -> [ i1 | i2 ] | |
late down [ i1 | ] -> [ i1 | i3 ] | |
late right [ i3 | ] -> [ i3 | i4 ] | |
late right [ c1 | ] -> [ c1 | c2 ] | |
late down [ c1 | ] -> [ c1 | c3 ] | |
late right [ c3 | ] -> [ c3 | c4 ] | |
( Tweak level ) | |
( | |
random late [ wall no wallcolor ] -> [ random wall wallcolor ] | |
late [ wall wallcolor ][ wall no wallcolor ] -> [ wall wallcolor ][ wall wallcolor ] | |
) | |
late right [ gate1 | gate1 | gate1 | wallh ] -> [ gate1 | gate2 | gate2 | gate3 ] | |
late down [ | tele1 | ] -> [ leftcutter | tele1 leftcutter | leftcutter ] | |
( REALTIME ) | |
late ['][ 1 no w ] -> ['][ 1 w8 w4 ] | |
late ['][ 2 no w ] -> ['][ 2 w4 ] | |
late ['][ 3 no w ] -> ['][ 3 w16 ] | |
( Removing go markers ) | |
late [ T Go ][ 2 no w] -> [ T ][ 2 ] | |
late [ T Act ] -> [ T ] | |
( Waiting ) | |
late [ T ][ W ] -> [ T ][ W CD ] | |
late [ T ][ W1 CD ] -> [ T ][ ] | |
late [ T ][ W2 CD no W1 ] -> [ T ][ W1 ] | |
late [ T ][ W4 CD no W2 no W1 ] -> [ T ][ W2 W1 ] | |
late [ T ][ W8 CD no W4 no W2 no W1 ] -> [ T ][ W4 W2 W1 ] | |
late [ T ][ W16 CD no W8 no W4 no W2 no W1 ] -> [ T ][ W8 W4 W2 W1 ] | |
late [ T ][ W32 CD no W16 no W8 no W4 no W2 no W1 ] -> [ T ][ W16 W8 W4 W2 W1 ] | |
============== | |
WINCONDITIONS | |
============== | |
no background on pill | |
======= | |
LEVELS | |
======= | |
┏━━━━━━━━━━━━┓-┏━━━━━━━━━━━━┓ | |
┃............┃-┃............┃ | |
┃.┏━━┓.┏━━━┓.┃-┃.┏━━━┓.┏━━┓.┃ | |
┃o┃--┃.┃---┃.┃-┃.┃---┃.┃--┃o┃ | |
┃.┗━━┛.┗━━━┛.┗━┛.┗━━━┛.┗━━┛.┃ | |
┃...........................┃ | |
┃.┏━━┓.┏┓.┏━━━━━━━┓.┏┓.┏━━┓.┃ | |
┃.┗━━┛.┃┃.┗━━┓-┏━━┛.┃┃.┗━━┛.┃ | |
┃......┃┃....┃-┃....┃┃......┃ | |
┗━━━━┓.┃┗━━┓-┃-┃-┏━━┛┃.┏━━━━┛ | |
-----┃.┃┏━━┛-┗━┛-┗━━┓┃.┃----- | |
s123-┃.┃┃-----b-----┃┃.┃----- | |
-----┃.┃┃-┏━━===━━┓-┃┃.┃----- | |
━━━━━┛.┗┛-┃-------┃-┗┛.┗━━━━━ | |
z-----.---┃-p-i-c-┃---.-----y | |
━━━━━┓.┏┓-┃-------┃-┏┓.┏━━━━━ | |
-----┃.┃┃-┗━━━━━━━┛-┃┃.┃----- | |
-----┃.┃┃-----------┃┃.┃----- | |
-----┃.┃┃-┏━━━━━━━┓-┃┃.┃----' | |
┏━━━━┛.┗┛-┗━━┓-┏━━┛-┗┛.┗━━━━┓ | |
┃............┃-┃............┃ | |
┃.┏━━┓.┏━━━┓.┃-┃.┏━━━┓.┏━━┓.┃ | |
┃.┗━┓┃.┗━━━┛.┗━┛.┗━━━┛.┃┏━┛.┃ | |
┃o..┃┃........@........┃┃..o┃ | |
┗━┓.┃┃.┏┓.┏━━━━━━━┓.┏┓.┃┃.┏━┛ | |
┏━┛.┗┛.┃┃.┗━━┓-┏━━┛.┃┃.┗┛.┗━┓ | |
┃......┃┃....┃-┃....┃┃......┃ | |
┃.┏━━━━┛┗━━┓.┃-┃.┏━━┛┗━━━━┓.┃ | |
┃.┗━━━━━━━━┛.┗━┛.┗━━━━━━━━┛.┃ | |
┃...........................┃ | |
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment