puzzlescript
Version:
Play PuzzleScript games in your terminal!
487 lines (353 loc) • 6.06 kB
Plain Text
title Yin Yang
author Le Slo
homepage www.puzzlescript.net
norepeat_action
========
OBJECTS
========
Background
BLACK
Floor1
fefffe #fafbfb #f5f5f5 #f3f3f3 #f1f1f1 #ececed
41530
25201
02050
11442
30512
Floor2
0e0d0d #0e090d #3d3d3e #2f2f2f #232323 #000000
02050
11442
30512
41530
25201
Floor3
GREY
Target1
efc546 #efa846
..1..
.101.
10.01
.101.
..1..
Target2
efc546 #efa846
..1..
.101.
10.01
.101.
..1..
Wall
79797b #454547 #7f8183 #4e4d4e #3d3b3c #454547
02000
01442
03512
01530
20200
Player2
fefffe #fafbfb #f5f5f5 #f3f3f3 #f1f1f1 #ececed #56d05f #56f15f
.777.
75207
72057
71447
.777.
Player1
0e0d0d #0e090d #3d3d3e #2f2f2f #232323 #000000 #56d05f #56f15f
.777.
71447
70517
71537
.777.
WPlayer2
fefffe #fafbfb #f5f5f5 #f3f3f3 #f1f1f1 #ececed #d0595f #f0344d
.777.
75207
72057
71447
.777.
WPlayer1
0e0d0d #0e090d #3d3d3e #2f2f2f #232323 #000000 #d0595f #f0344d
.777.
71447
70517
71537
.777.
Crate1
64a69b black #64b99b
02020
21112
01110
21112
02020
Crate2
64a69b white #64b99b
02020
21112
01110
21112
02020
PCrate1
64a69b #56f15f #64b99b
02020
21112
01.10
21112
02020
PCrate2
64a69b #56f15f #64b99b
02020
21112
01.10
21112
02020
WPCrate1
64a69b #f0344d #64b99b
02020
21112
01.10
21112
02020
WPCrate2
64a69b #f0344d #64b99b
02020
21112
01.10
21112
02020
WinCrate
efc546 black #efa846
02020
2...2
0...0
2...2
02020
=======
LEGEND
=======
. = Background
= Wall
4 = PCrate1 and Floor1
5 = PCrate2 and Floor2
6 = WPCrate1 and Floor2
7 = WPCrate2 and Floor1
1 = Floor1
2 = Floor2
3 = Floor3
a = Crate1 and Floor1
b = Crate2 and Floor2
c = Player1 and Floor1
d = Player2 and Floor2
e = WPlayer1 and Floor1
f = WPlayer2 and Floor2
8 = Target1 and Floor1
9 = Target2 and Floor2
Target = target1 or target2
player = Player1 or Player2 or WPlayer1 or WPlayer2 or PCrate1 or PCrate2 or WPCrate1 or WPCrate2
crate = Crate1 or Crate2 or PCrate1 or PCrate2 or WPCrate1 or WPCrate2
=======
SOUNDS
=======
(Yin Yang Push)
sfx0 74595308
(Enter Box)
sfx1 9876307
(Push)
sfx2 48919307
Startlevel 15709308
================
COLLISIONLAYERS
================
Background
Floor1, Floor2, Floor3
Target
Player1, Player2, WPlayer1, WPlayer2, Wall, Crate1, Crate2, PCrate1, PCrate2, WPCrate1, WPCrate2
WinCrate
======
RULES
======
(Get inside Crate)
[ > Player1 | Crate2] -> [Floor1 | PCrate2] sfx1
[ > Player2 | Crate1] -> [Floor2 | PCrate1] sfx1
(Block WaitingPlayers)
[ > WPlayer1] -> [Wplayer1]
[ > WPlayer2] -> [Wplayer2]
[ > WPCrate1] -> [WPCrate1]
[ > WPCrate2] -> [WPCrate2]
([ > PCrate1] -> [PCrate1]
[ > PCrate2] -> [PCrate2])
(Exit Box)
[ > PCrate2 | Floor1 no crate] -> [Crate2 | c ] sfx1
[ > PCrate1 | Floor2 no crate] -> [Crate1 | d ] sfx1
(Exit Push Box)
[ > PCrate2 | Crate1 | Floor1] -> [Crate2 | c | a] sfx1
[ > PCrate1 | Crate2 | Floor2] -> [Crate1 | d | b] sfx1
(Exit Ying Yang Push Box)
[ > PCrate2 | Crate1 | Floor2 no Crate no player] -> [Crate2 | c | b] sfx0
[ > PCrate1 | Crate2 | Floor1 no Crate no player] -> [Crate1 | d | a] sfx0
(Change Box)
[ > PCrate2 | Crate2] -> [Crate2 | PCrate2 ] sfx1
[ > PCrate1 | Crate1] -> [Crate1 | PCrate1 ] sfx1
(Normal push)
[ > Player1 | Crate1 | Floor1] -> [ > Player1 | > Crate1 | Floor1 ] sfx2
[ > Player1 | Crate1 | Floor2] -> [ > Player1 | > Crate2 | Floor2 ] sfx0
(Yin Yang Push)
[ > Player2 | Crate2 | Floor2] -> [ > Player2 | > Crate2 | Floor2 ] sfx2
[ > Player2 | Crate2 | Floor1] -> [ > Player2 | > Crate1 | Floor1 ] sfx0
(Player Push)
[ > Player1 | WPCrate1 | Floor1] -> [ > Player1 | > WPCrate1 | Floor1 ] sfx2
[ > Player2 | WPCrate2 | Floor2] -> [ > Player2 | > WPCrate2 | Floor2 ] sfx2
(Stop movement)
[ > Player1 | Floor2 ] -> [Player1 | Floor2]
[ > Player2 | Floor1] -> [Player2 | Floor1]
[ > PCrate2 | Floor2] -> [ PCrate2 | Floor2]
[ > PCrate1 | Floor1] -> [ PCrate1 | Floor1]
(Stop action)
[ > crate | player] -> cancel
[ > crate | crate] -> cancel
(Add decoration for correct crates)
late[target crate] -> [target crate WinCrate]
late[WinCrate no crate] -> [no WinCrate]
[ Action Player1 ] -> [ WPlayer1]
[ Action WPlayer1 ] -> [ Player1]
[ Action Player2 ] -> [WPlayer2]
[ Action WPlayer2 ] -> [ Player2]
[ Action PCrate1 ] -> [ WPCrate1]
[ Action WPCrate1 ] -> [ PCrate1]
[ Action PCrate2 ] -> [WPCrate2]
[ Action WPCrate2 ] -> [ PCrate2]
==============
WINCONDITIONS
==============
All Target on crate
=======
LEVELS
=======
MESSAGE Level 01/14
MESSAGE Press x to change from Yin to Yang
(First Level)
##########
922b2d222#
##########
111e1a118#
##########
MESSAGE Level 02/14
(Tutorial)
#########
11122222#
111f2292#
1a11c222#
11111222#
#########
MESSAGE Level 03/14
(Yin Yang)
.######.
#2222##
2122a1#
22211c#
2f2111#
291121#
#1111##
.######.
MESSAGE Level 04/14
(Passage)
...####...
###11####
1111d2b2#
12289112#
1a1e2222#
###22####
...####...
MESSAGE Level 05/14
(Transport 1)
#########
22111122#
221c11b2#
9221122f#
22211222#
#########
MESSAGE Level 06/14
(Transport 2)
########
2288822#
2211122#
2b11122#
221a122#
22ca122#
221112f#
2221122#
2221122#
########
MESSAGE Level 07/14
(Twins)
#######
222111#
222111#
9dbae1#
222111#
#######
MESSAGE Level 08/14
(Push from the box)
##########
111#9#222#
1a1c2f2b2#
111112222#
##########
MESSAGE Level 09/14
(Three Lines)
######
91211#
21211#
21211#
21b12#
2121f#
21a12#
21c12#
######
MESSAGE Level 10/14
(Push more from the box.)
#########
11112222#
112891b2#
111ed222#
1a#222###
11#222#..
#######..
MESSAGE Level 11/14
(Crack)
######
22122#
22822#
22122#
2292f#
22122#
22a22#
1c1a1#
11111#
######
MESSAGE Level 12/14
(Isolated box)
#########
21111111#
21111111#
991a1bc1#
21111111#
f1111111#
#########
MESSAGE Level 13/14
(Parallels)
##########
922f2b222#
1111a1a18#
922b2b222#
1111a1c18#
##########
MESSAGE Level 14/14
(14 Isolated boxes)
########
22222f2#
118b811#
c1b1b11#
118b811#
2222222#
########
MESSAGE Yin and Yang are happy!