Last active
August 22, 2022 16:17
-
-
Save skysheng7/cacac1ef3ad46dfb7281d2750aeb8e50 to your computer and use it in GitHub Desktop.
Feed-a-Moo (PuzzleScript Script)
This file contains hidden or 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 hidden or 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 Feed-a-Moo | |
| author Sky Sheng | |
| homepage www.puzzlescript.net | |
| (only count when the player moves, only melt when the player moves) | |
| require_player_movement | |
| (verbose_logging) | |
| ======== | |
| OBJECTS | |
| ======== | |
| background | |
| lightgreen yellow | |
| 00000 | |
| 00010 | |
| 00000 | |
| 01000 | |
| 00000 | |
| wall | |
| #787878 #444444 #a7a6a6 | |
| 02222 | |
| 10002 | |
| 10002 | |
| 10002 | |
| 11110 | |
| lying_stall | |
| black | |
| .0000 | |
| .0..0 | |
| .0..0 | |
| ....0 | |
| ..... | |
| Cow_dom | |
| White black pink darkgray red | |
| 3.4.3 | |
| 33033 | |
| 31013 | |
| 30103 | |
| .000. | |
| Cow_med | |
| White black pink darkgray orange | |
| 3.4.3 | |
| 33033 | |
| 31013 | |
| 30103 | |
| .000. | |
| Cow_sub | |
| White black pink darkgray yellow | |
| 3.4.3 | |
| 33033 | |
| 31013 | |
| 30103 | |
| .000. | |
| Player | |
| White black pink darkgray red | |
| 0...0 | |
| 00000 | |
| 01010 | |
| 30103 | |
| .000. | |
| bin | |
| lightblue | |
| 0...0 | |
| 0...0 | |
| 0...0 | |
| 00000 | |
| .000. | |
| bin_feed | |
| lightblue green darkgreen | |
| 0...0 | |
| 01120 | |
| 02110 | |
| 00000 | |
| .000. | |
| bin_wat | |
| lightblue blue darkblue | |
| 0...0 | |
| 01120 | |
| 02110 | |
| 00000 | |
| .000. | |
| gate | |
| orange red | |
| 00001 | |
| ..... | |
| ..... | |
| ..... | |
| ..... | |
| gate_open | |
| orange yellow | |
| 0.... | |
| 0.... | |
| 0.... | |
| 0.... | |
| 1.... | |
| key | |
| lightbrown | |
| ..0.. | |
| .0.0. | |
| ..0.. | |
| ..00. | |
| ..0.. | |
| start | |
| orange | |
| 00000 | |
| ....0 | |
| ....0 | |
| ....0 | |
| ....0 | |
| start1 | |
| orange | |
| ..000 | |
| ..0.. | |
| ..0.. | |
| ..0.. | |
| ..0.. | |
| start2 | |
| orange | |
| ....0 | |
| ....0 | |
| 00000 | |
| ..... | |
| ..... | |
| start3 | |
| orange | |
| ..0.. | |
| ..0.. | |
| ..000 | |
| ..... | |
| ..... | |
| ======= | |
| LEGEND | |
| ======= | |
| . = Background | |
| # = Wall | |
| P = Player | |
| l = lying_stall | |
| d = Cow_dom | |
| m = Cow_med | |
| s = Cow_sub | |
| cow = Cow_dom or Cow_med or Cow_sub | |
| @ = Cow_dom and lying_stall | |
| * = Cow_med and lying_stall | |
| $ = Cow_sub and lying_stall | |
| b = bin | |
| f = bin_feed | |
| w = bin_wat | |
| g = gate | |
| o = gate_open | |
| k = key | |
| t = start and Player | |
| 1 = start1 | |
| 2 = start2 | |
| 3 = start3 | |
| ======= | |
| SOUNDS | |
| ======= | |
| player move 36772507 | |
| sfx0 63135902 | |
| ================ | |
| COLLISIONLAYERS | |
| ================ | |
| Background | |
| lying_stall, bin_feed, bin_wat, bin, start, start1, start2, start3 | |
| gate_open | |
| Player, Wall, Cow_dom, Cow_med, Cow_sub, gate, key | |
| ====== | |
| RULES | |
| ====== | |
| [ > Player | Cow_dom ] -> [ > Player | > Cow_med ] sfx0 | |
| [ > Player | Cow_med ] -> [ > Player | > Cow_sub ] sfx0 | |
| [ > Player | Cow_sub ] -> [ > Player | > Cow_sub ] sfx0 | |
| [ stationary cow ] -> [ randomDir cow ] | |
| [ > Cow_dom | Cow_dom] -> [> Cow_dom | > Cow_med] | |
| [ > Cow_med | Cow_med] -> [> Cow_med | > Cow_sub] | |
| [ > Cow_sub | Cow_sub] -> [> Cow_sub | > Cow_sub] | |
| [ > Cow_dom | Cow_med] -> [> Cow_dom | > Cow_sub] | |
| [ > Cow_med | Cow_dom] -> [> Cow_dom | > Cow_med] | |
| [ > Cow_dom | Cow_sub] -> [> Cow_dom | > Cow_sub] | |
| [ > Cow_sub | Cow_dom] -> [> Cow_med | > Cow_med] | |
| [ > Cow_med | Cow_sub] -> [> Cow_dom | > Cow_sub] | |
| [ > Cow_sub | Cow_med] -> [> Cow_med | > Cow_sub] | |
| [> cow bin_feed | no wall] -> [bin | > cow] | |
| ([> cow bin_wat | no wall] -> [bin | > cow]) | |
| ([> Player bin_wat | no wall] -> [bin | > Player]) | |
| [bin | bin | bin | bin | bin_wat| bin] -> restart message Sorry, all feed were consumed, you did not get access to feed! | |
| [bin | bin | bin | bin_wat | bin| bin | bin | bin] -> restart message Sorry, all feed were consumed, you did not get access to feed! | |
| [bin | bin | bin | bin] -> restart message Sorry, all feed were consumed, you did not get access to feed! | |
| (player push key around) | |
| [ > Player | key ] -> [ > Player | > key ] | |
| [ > key | gate ] -> [ | gate_open ] | |
| ============== | |
| WINCONDITIONS | |
| ============== | |
| some Player on bin_feed | |
| ======= | |
| LEVELS | |
| ======= | |
| message You are the cow standing in the orange rectangle. The dominant cow has a red crown, the middle-class cow has a orange crown, and the subordinate cow has a yellow crown. Their status changes when they meet and fight. | |
| message To win the game, you need to get access to feed before feed bins become empty. Good luck! | |
| message Level 1 out of 5: low resource occupancy | |
| ############# | |
| #1t.....#...m | |
| #32l$l$.#.l@. | |
| #..l@ll.#.*l. | |
| #.......#.... | |
| #....m...s... | |
| #bfbbwb....## | |
| ###########.. | |
| message Yum yum... What a delicious TMR! | |
| message Level 2 out of 5: medium resource occupancy | |
| ############# | |
| #....m1t#.... | |
| #.l*ll32#.l*. | |
| #.$ll@..#.@l. | |
| #.......#.... | |
| #.s...s...... | |
| #ffffwf....## | |
| ###########.. | |
| message That was a bit crowded... but glad you made it:) | |
| message Level 3 out of 5: high resource occupancy | |
| ############# | |
| #.......#.... | |
| #.ll$l..#1tll | |
| #.llll..#32ll | |
| #...m...#.... | |
| #dmsdms...... | |
| #ffffwf....## | |
| ###########.. | |
| message Holy cow, that was hard to feed! So don't overstock the cows and don't calculate dominance under high resource occupancy! | |
| message Level 4 out of 5: find the key to open the gate under medium resource occupancy | |
| ############### | |
| #.............. | |
| #.m....s....... | |
| #.fffwffff..... | |
| ###########g### | |
| #1t......m..... | |
| #32@l@lll...... | |
| #..$ll*llk..### | |
| #...........#.. | |
| #############.. | |
| message What a smart cow! You opened the gate! | |
| message Level 5 out of 5: find the key to open the gate under low resource occupancy | |
| .d........#..m... | |
| ###.fbff#g....... | |
| 1t#.#####.....ll. | |
| 32#.###.#...#.$l. | |
| ..#..##..#..#.ll. | |
| ..#...#k.#.k#.l$. | |
| ..#ww.#..#..#.ll. | |
| ..###.#.####..ll. | |
| .#..#w..##....... | |
| .l*.##..######g## | |
| .ll....d......... | |
| ......m.......... | |
| message Congratulations on finding all the feed! Enjoy your TMR and the rest of EAAP! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment