-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrules.pz
563 lines (456 loc) · 13.3 KB
/
rules.pz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
title An Auspicious Day v0.2.1
author arrogant.gamer
homepage www.arrogantgamer.com
flickscreen 20x10
color_palette proteus_rich
========
OBJECTS
========
Sky
White lightblue lightblue
22222
22222
22222
22222
22222
Grass
LightGreen Green
11101
10000
.01..
.....
.....
Dirt
lightbrown brown darkbrown
10000
11111
01211
10211
21212
Ladder
lightbrown brown darkbrown grey darkgrey
40004
43334
41214
43334
41214
Leaves ( maybe simplify tree model )
pink lightred red
.0000
12101
00020
0.00.
.01..
Trunk
#ee6246 #c05540 pink
.1110
.112.
.101.
.111.
11101
Root ( maybe remove root )
#ee6246 #c05540 pink
.....
.....
.....
.2011
11..0
Stump ( maybe replace stump with rock )
#ee6246 #c05540 #834538 pink
.11..
013..
1101.
1111.
12102
TallGrass
lightgreen yellow
.....
.....
.....
.1.1.
01001
Flowers
lightgreen purple blue
.....
.....
1..2.
0.20.
0..0.
FolkLeft
lightgrey grey darkgrey blue lightblue
44111
22231
23231
23211
22211
FolkCenter
lightgrey grey darkgrey blue lightblue
44444
44111
22131
23131
22111
FolkRight
lightgrey grey darkgrey blue lightblue
41114
41314
41314
21114
21114
BluePlayer
lightgrey grey darkgrey blue
.....
.000.
.030.
.030.
.000.
RedPlayer
lightgrey grey darkgrey red
.....
.000.
.030.
.030.
.000.
GreenPlayer
lightgrey grey darkgrey green
.....
.000.
.030.
.030.
.000.
OrangePlayer
lightgrey grey darkgrey orange
.....
.000.
.030.
.030.
.000.
ClosedOracle
lightgrey grey darkgrey black
.222.
.232.
.232.
.222.
.222.
OpenOracle
lightblue darkgrey
00000
00000
01010
01110
01110
OracleCap
lightgrey grey darkgrey orange
.....
.....
.222.
.2.2.
.....
Orange
orange
..0..
..0..
.....
.....
.....
Blue
blue
..0..
..0..
.....
.....
.....
Red
red
..0..
..0..
.....
.....
.....
Green
green
..0..
..0..
.....
.....
.....
OrangeCrystalDOWN
orange
.....
..0..
..0..
.....
.....
BlueCrystalDOWN
blue
.....
..0..
..0..
.....
.....
RedCrystalDOWN
red
.....
..0..
..0..
.....
.....
GreenCrystalDOWN
green
.....
..0..
..0..
.....
.....
Sun
yellow
00000
00000
00000
00000
00000
Rock
lightgrey grey darkgrey lightgreen green
.....
.11..
.101.
11101
44132
Water
lightblue blue darkblue lightgreen
11111
11111
11111
11111
11331
Cloud
#DDEEFF
00000
00000
00000
00000
00000
=======
LEGEND
=======
Background = Sky
DirtyCap = OracleCap and Dirt
( Oracles )
ClosedOrangeOracle = Sky and OrangeCrystalDown and ClosedOracle
OpenOrangeOracle = Orange and OpenOracle
ClosedGreenOracle = Sky and GreenCrystalDown and ClosedOracle
OpenGreenOracle = Green and OpenOracle
ClosedBlueOracle = Sky and BlueCrystalDown and ClosedOracle
OpenBlueOracle = Blue and OpenOracle
ClosedRedOracle = Sky and RedCrystalDown and ClosedOracle
OpenRedOracle = Red and OpenOracle
Crystal = Orange or Blue or Red or Green
Ↄ = OpenOracle
ɷ = OracleCap
D = Dirt
_ = Dirt and Grass
L = Ladder
~ = Water and Sky
? = Cloud and Sky
| = Sky and TallGrass
! = Sky and Flowers
: = Dirt and TallGrass
; = Dirt and Flowers
] = Sky and Root and TallGrass
@ = Sky and Root
& = Dirt and Root
^ = Rock
i = Rock and Dirt
[ = Sky and Trunk and Flowers
T = Sky and Trunk
/ = Sky and Leaves
# = Sky and Leaves
\ = Sky and Leaves
y = Dirt and Trunk
< = Dirt and Leaves
% = Dirt and Leaves
> = Dirt and Leaves
` = Leaves and Trunk and Dirt
" = Leaves and Trunk and Dirt
' = Leaves and Trunk and Dirt
{ = Leaves and Trunk and Sky
- = Leaves and Trunk and Sky
} = Leaves and Trunk and Sky
u = Leaves and Ladder
c = Leaves and Sun
n = Leaves and Sun
m = Leaves and Sun
S = Sky and Stump
$ = Dirt and Stump
* = Sun
q = FolkLeft
w = FolkCenter
e = FolkRight
f = FolkCenter and BluePlayer
2 = FolkCenter
3 = FolkCenter
4 = FolkCenter
0 = Dirt and Root
1 = Dirt and Rock
Folk = FolkCenter or FolkLeft or FolkRight
. = Background
Player = BluePlayer or OrangePlayer or RedPlayer or GreenPlayer
+ = BluePlayer
BlueToOrange = BluePlayer and Orange and openOracle
BlueToRed = BluePlayer and Red and openOracle
BlueToGreen = BluePlayer and Green and openOracle
OrangeToBlue = OrangePlayer and Blue and openOracle
OrangeToRed = OrangePlayer and Red and openOracle
OrangeToGreen = OrangePlayer and Green and openOracle
RedToOrange = RedPlayer and Orange and openOracle
RedToBlue = RedPlayer and Blue and openOracle
RedToGreen = RedPlayer and Green and openOracle
GreenToOrange = GreenPlayer and Orange and openOracle
GreenToRed = GreenPlayer and Red and openOracle
GreenToBlue = GreenPlayer and Blue and openOracle
P = BluePlayer and FolkCenter
+ = BluePlayer
& = BluePlayer and Dirt
O = ClosedOrangeOracle
B = ClosedBlueOracle
R = ClosedRedOracle
G = ClosedGreenOracle
RedCollision = Leaves
GreenCollision = TallGrass or Water or Flowers
OrangeCollision = Trunk or Root or Stump or Sun
BlueCollision = ClosedOracle or Rock or Cloud
DownCrystals = OrangeCrystalDOWN or BlueCrystalDOWN or RedCrystalDown or GreenCrystalDown
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
(background)
Sky, Dirt, openOracle, Ladder, FolkLeft, FolkCenter, FolkRight (9)
(background details) ( TODO move graves to the background and rename them )
OrangePlayer, Trunk, Root, Sun, Stump (3)
(passable objects)
RedPlayer, Leaves, OracleCap, DownCrystals (7)
(action layer)
GreenPlayer, TallGrass, Flowers, Water (4)
(foreground)
BluePlayer, ClosedOracle, Rock, Cloud (3)
( Crystals )
Orange, Blue, Red, Green, Grass (5)
( this looks like 31 objects to me )
======
RULES
======
( player can "summon" the crystal into their square )
( but we guard against accidentally destroying crystals this way )
[ no Crystal | Up Player | Crystal ] -> [ | UP Player Crystal | ]
[ no Crystal | down Player | Crystal ] -> [ | DOWN Player Crystal | ]
( player can't jump, only climb )
[ UP Player no Ladder ] -> [ Player ]
[ DOWN Player no Ladder ] -> [ Player ]
( since the player may not always be on the same layer, but
grass must always be a barrier )
[ > player | grass ] -> [ player | grass ]
( I haven't been able to get the player to enter a ladder from above,
only horizontally, so this next rule prevents players from climbing
up into the sky )
[ UP Player Ladder | Sky ] -> [ Player Ladder | Sky ]
( we need gravity for the player: they should fall through anything they
do not collide with; but everyone collides with grass )
DOWN [ BluePlayer no Ladder | no Grass no BlueCollision ] -> [ down BluePlayer no Ladder | ] again
DOWN [ RedPlayer no Ladder | no Grass no RedCollision ] -> [ down RedPlayer no Ladder | ] again
DOWN [ GreenPlayer no Ladder | no Grass no GreenCollision ] -> [ down GreenPlayer no Ladder | ] again
DOWN [ OrangePlayer no Ladder | no Grass no OrangeCollision ] -> [ down OrangePlayer no Ladder | ] again
( a climbing player can only move up or down )
vertical [ Ladder | left Player | Ladder ] -> [ Ladder | Player | Ladder ]
vertical [ Ladder | right Player | Ladder ] -> [ Ladder | Player | Ladder ]
( OPENING / CLOSING ORACLES )
[ Action Player | ClosedOrangeOracle ] -> [ Player | OpenOrangeOracle ]
late vertical [ OpenOrangeOracle | ] -> [ OpenOrangeOracle | OracleCap ]
[ Action Player | OpenOrangeOracle ] -> [ Player | ClosedOrangeOracle ]
late vertical [ ClosedOrangeOracle | OracleCap ] -> [ ClosedOrangeOracle | Sky ]
[ Action Player | ClosedBlueOracle ] -> [ Player | OpenBlueOracle ]
late vertical [ OpenBlueOracle | ] -> [ OpenBlueOracle | OracleCap ]
[ Action Player | OpenBlueOracle ] -> [ Player | ClosedBlueOracle ]
late vertical [ ClosedBlueOracle | OracleCap ] -> [ ClosedBlueOracle | Sky ]
[ Action Player | ClosedRedOracle ] -> [ Player | OpenRedOracle ]
late vertical [ OpenRedOracle | ] -> [ OpenRedOracle | OracleCap ]
[ Action Player | OpenRedOracle ] -> [ Player | ClosedRedOracle ]
late vertical [ ClosedRedOracle | OracleCap ] -> [ ClosedRedOracle | Sky ]
[ Action Player | ClosedGreenOracle ] -> [ Player | OpenGreenOracle ]
late vertical [ OpenGreenOracle | ] -> [ OpenGreenOracle | OracleCap ]
[ Action Player | OpenGreenOracle ] -> [ Player | ClosedGreenOracle ]
late vertical [ ClosedGreenOracle | OracleCap ] -> [ ClosedGreenOracle | Sky ]
late [ DirtyCap ] -> [ _ ] ( clean up the damn dirty cap )
( crystals should follow player and other crystals )
[ Crystal | > Player ] -> [ > Crystal | > Player ]
[ perpendicular Player | Crystal ] -> [ perpendicular Player | < Crystal ]
([ Crystal | > Player ] -> [ > Crystal | > Player ]
[ Crystal | > Player | Ladder ] -> [ | | Player Ladder Crystal ])
( crystals should act on one another )
( Caylay table )
( )
( B G R O )
( B B G R O )
( G G B O R )
( R R O B G )
( O O R G B )
late horizontal [ Crystal | Blue ] -> [ Crystal | ]
late horizontal [ Orange | Orange ] -> [ Blue | ]
late horizontal [ Red | Red ] -> [ Blue | ]
late horizontal [ Green | Green ] -> [ Blue | ]
late horizontal [ Red | Orange ] -> [ Green | ]
late horizontal [ Red | Green ] -> [ Orange | ]
late horizontal [ Orange | Green ] -> [ Red | ]
( swapping crystals )
[ action BluePlayer Orange no OrangeCollision ] -> [ OrangePlayer Blue ]
[ action BluePlayer Red no RedCollision ] -> [ RedPlayer Blue ]
[ action BluePlayer Green no GreenCollision ] -> [ GreenPlayer Blue ]
[ action OrangePlayer Green no GreenCollision ] -> [ GreenPlayer Orange ]
[ action OrangePlayer Red no RedCollision ] -> [ RedPlayer Orange ]
[ action OrangePlayer Blue no BlueCollision ] -> [ BluePlayer Orange ]
[ action RedPlayer Green no GreenCollision ] -> [ GreenPlayer Red ]
[ action RedPlayer Orange no OrangeCollision ] -> [ OrangePlayer Red ]
[ action RedPlayer Blue no BlueCollision ] -> [ BluePlayer Red ]
[ action GreenPlayer Orange no OrangeCollision ] -> [ OrangePlayer Green ]
[ action GreenPlayer Red no RedCollision ] -> [ RedPlayer Green ]
[ action GreenPlayer Blue no BlueCollision ] -> [ BluePlayer Green ]
[ action Player ] -> [ Player ]
down [ Player Folk ] [ Player | ... | rock ] -> [ Player Folk ] [ Player | ... | action rock ]
( speaking to dudes acts as a checkpoint )
down [ action rock sky ] -> checkpoint
down [ action rock | 0 | 0 | 0 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Something feels different. The sky? Do you feel it?
down [ action rock | 0 | 0 | 0 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message That rock up ahead was blocking the path, so we built a ladder.
down [ action rock | 0 | 0 | 0 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message The oracle who stands over there once had a brilliant green gem.
down [ action rock | 0 | 0 | 1 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message That ladder is broken... I guess your journey ends here.
down [ action rock | 0 | 0 | 1 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message You... you passed behind that rock? How!?
down [ action rock | 0 | 0 | 1 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message We once met a red Oracle. She could walk in the branches of trees.
down [ action rock | 0 | 0 | 1 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Orange oracles were keyed to wood. They are all grey now...
down [ action rock | 0 | 1 | 0 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message If you get really stuck, press 'r' to go back to a checkpoint.
down [ action rock | 0 | 1 | 0 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Vibrations. When the gems come together, they fuse into new gems.
down [ action rock | 0 | 1 | 0 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message With the right pair of gems, an oracle could go anywhere.
down [ action rock | 0 | 1 | 0 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Our oracle tried to teach us... but we could never understand gem fusion.
down [ action rock | 0 | 1 | 1 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Oracles, with the right gems, never feel stuck.
down [ action rock | 0 | 1 | 1 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message It must be nice...
down [ action rock | 0 | 1 | 1 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message We blue folk once lived in the sky... now we are trapped here by our ignorance.
down [ action rock | 0 | 1 | 1 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Our blue gem is the identity.
down [ action rock | 1 | 0 | 0 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message A gem is its own negative image.
down [ action rock | 1 | 0 | 0 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Don't rush to fuse gems: go as far as you can with what you have.
down [ action rock | 1 | 0 | 0 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message The other side of this valley is a sacred place.
down [ action rock | 1 | 0 | 0 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message That's it for now... this is as far as it goes!
down [ action rock | 1 | 0 | 1 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Something has happened to the oracles... I think?
down [ action rock | 1 | 0 | 1 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message I came here long ago. It is quite, and I like that.
down [ action rock | 1 | 0 | 1 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message We are the people of the sky. Never forget.
down [ action rock | 1 | 0 | 1 | 1 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Meditating here, I realized... gems are trigon symmetries!
down [ action rock | 1 | 1 | 0 | 0 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message You can go down and get stuck... but,
down [ action rock | 1 | 1 | 0 | 0 | 1 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message I wonder if there is a way to go up, and get stuck?
down [ action rock | 1 | 1 | 0 | 1 | 0 ] -> [ rock | 0 | 0 | 0 | 0 | 0 ] message Do you like my garden? It needs space to grow.
==============
WINCONDITIONS
==============
=======
LEVELS
=======
message The oracles' gems have faded...
message today is an auspicious day