Created
December 24, 2020 06:50
-
-
Save instr3/80b6eb46d2da8ed3474a3f50ff1a0504 to your computer and use it in GitHub Desktop.
My Game (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 My Game | |
| author My Name Here | |
| homepage www.puzzlescript.net | |
| again_interval 0.1 | |
| verbose_logging | |
| ======== | |
| OBJECTS | |
| ======== | |
| Background | |
| White LightGray | |
| 00000 | |
| 00100 | |
| 00000 | |
| 00010 | |
| 10000 | |
| Pit | |
| #444444 #222222 black | |
| 00000 | |
| 01110 | |
| 01210 | |
| 01110 | |
| 00000 | |
| StuffedPit | |
| darkgray #222222 | |
| 00000 | |
| 00100 | |
| 00000 | |
| 00010 | |
| 10000 | |
| StuffedWater | |
| LightGray LightBlue | |
| 00000 | |
| 00100 | |
| 00000 | |
| 00010 | |
| 10000 | |
| IceFloor | |
| #99FFFF White | |
| 01000 | |
| 00100 | |
| 10010 | |
| 01000 | |
| 00000 | |
| Water | |
| Blue LightBlue | |
| 00000 | |
| 01100 | |
| 10011 | |
| 00000 | |
| 00000 | |
| Target | |
| Black | |
| ..... | |
| .000. | |
| .0.0. | |
| .000. | |
| ..... | |
| SolidWall | |
| Brown DarkBrown | |
| 00010 | |
| 11111 | |
| 01000 | |
| 11111 | |
| 00010 | |
| BrokenWall | |
| Brown darkbrown | |
| .100. | |
| 00100 | |
| 00100 | |
| 01010 | |
| .000. | |
| Ash | |
| Brown | |
| ...0. | |
| .0... | |
| ....0 | |
| 0.... | |
| ..0.. | |
| Bomb | |
| Black | |
| ..00. | |
| ..0.. | |
| .000. | |
| 00000 | |
| .000. | |
| NormalPlayer | |
| LightGreen | |
| ..... | |
| .000. | |
| .000. | |
| .0.0. | |
| .0.0. | |
| IcePlayer | |
| LightBlue | |
| ..... | |
| .000. | |
| .000. | |
| .0.0. | |
| .0.0. | |
| FireTail | |
| Red Orange | |
| ..... | |
| ..1.. | |
| .101. | |
| ..1.. | |
| ..... | |
| FirePlayer | |
| Red Yellow | |
| .1... | |
| 1000. | |
| .0001 | |
| .010. | |
| .0.0. | |
| IronPlayer | |
| Gray | |
| ..... | |
| .000. | |
| .000. | |
| .0.0. | |
| .0.0. | |
| EarthPlayer | |
| Brown | |
| ..... | |
| .000. | |
| .000. | |
| .0.0. | |
| .0.0. | |
| WoodCrate | |
| Orange | |
| 00000 | |
| 0...0 | |
| 0...0 | |
| 0...0 | |
| 00000 | |
| IronCrate | |
| DarkGray | |
| 00000 | |
| 0...0 | |
| 0...0 | |
| 0...0 | |
| 00000 | |
| Iced | |
| lightblue | |
| .0.0. | |
| 00..0 | |
| 0.... | |
| ...00 | |
| .0... | |
| IceTransformer | |
| Black Lightblue | |
| .000. | |
| 01110 | |
| 01110 | |
| 01110 | |
| .000. | |
| FireTransformer | |
| Black Red | |
| .000. | |
| 01110 | |
| 01110 | |
| 01110 | |
| .000. | |
| EarthTransformer | |
| Black Brown | |
| .000. | |
| 01110 | |
| 01110 | |
| 01110 | |
| .000. | |
| IronTransformer | |
| Black Gray | |
| .000. | |
| 01110 | |
| 01110 | |
| 01110 | |
| .000. | |
| NormalTransformer | |
| Black LightGreen | |
| .000. | |
| 01110 | |
| 01110 | |
| 01110 | |
| .000. | |
| Flag | |
| Yellow | |
| ..... | |
| .000. | |
| .000. | |
| .0... | |
| .0... | |
| LightBomb | |
| Black Yellow | |
| ..11. | |
| ..0.. | |
| .000. | |
| 00000 | |
| .000. | |
| OnFire | |
| Yellow | |
| 0.00. | |
| .0... | |
| 0..00 | |
| 0...0 | |
| .00.. | |
| Explosion | |
| Orange Yellow | |
| .1.1. | |
| 10111 | |
| .010. | |
| 11001 | |
| .1.1. | |
| JustTransformed | |
| Transparent | |
| PreviousLocation | |
| transparent | |
| CurrentLocation | |
| transparent | |
| InitialExplotion | |
| transparent | |
| Magnetized | |
| transparent | |
| PrepareToDrown | |
| transparent | |
| WontDrown | |
| transparent | |
| ======= | |
| LEGEND | |
| ======= | |
| Transformer = IceTransformer or FireTransformer or EarthTransformer or IronTransformer or NormalTransformer | |
| Player = IcePlayer or FirePlayer or EarthPlayer or IronPlayer or NormalPlayer | |
| NotFirePlayer = IcePlayer or EarthPlayer or IronPlayer or NormalPlayer | |
| Crate = WoodCrate or IronCrate or Bomb or LightBomb | |
| IronMan = IronPlayer or IronCrate | |
| Obstacles = SolidWall or Crate or BrokenWall | |
| ~ = Water | |
| / = IceFloor | |
| . = Background | |
| # = SolidWall | |
| % = BrokenWall | |
| & = Pit | |
| B = Bomb | |
| P = NormalPlayer | |
| F = Flag | |
| * = WoodCrate | |
| O = IronCrate | |
| 1 = IceTransformer | |
| 2 = FireTransformer | |
| 3 = EarthTransformer | |
| 4 = IronTransformer | |
| 0 = NormalTransformer | |
| ======= | |
| SOUNDS | |
| ======= | |
| sfx0 4585702 | |
| sfx1 14573103 | |
| sfx2 51386703 | |
| sfx3 6800100 | |
| sfx4 7862700 | |
| ================ | |
| COLLISIONLAYERS | |
| ================ | |
| Background | |
| Water, IceFloor, StuffedWater, Pit, StuffedPit | |
| Ash | |
| Target, Transformer, Flag | |
| Player, SolidWall, Crate, BrokenWall, Bomb, LightBomb | |
| FireTail | |
| Iced | |
| Magnetized | |
| OnFire | |
| Explosion, InitialExplotion | |
| JustTransformed | |
| PreviousLocation | |
| CurrentLocation | |
| PrepareToDrown | |
| WontDrown | |
| ====== | |
| RULES | |
| ====== | |
| [ Explosion ] -> [ ] | |
| [ Magnetized ] -> [ ] | |
| [ Player ] -> [ CurrentLocation Player ] | |
| ( 烟花 ) | |
| vertical [ | LightBomb | ] -> [ InitialExplotion | InitialExplotion | InitialExplotion ] again | |
| vertical [ | LightBomb ] -> [ InitialExplotion | InitialExplotion ] again | |
| horizontal [ | InitialExplotion | ] -> [ Explosion | Explosion | Explosion ] again | |
| horizontal [ | InitialExplotion ] -> [ Explosion | Explosion ] again | |
| late [ Explosion BrokenWall ] -> [ Explosion Ash ] | |
| late [ Explosion WoodCrate ] -> [ Explosion Ash ] | |
| late [ Explosion Player ] -> [ Explosion ] | |
| late [ Explosion IceFloor ] -> [ Water ] | |
| late [ Explosion Bomb ] -> [ Explosion LightBomb ] | |
| ( 冰叶子 ) | |
| startloop | |
| [ > IcePlayer | Water no Obstacles no Transformer ] -> [ | > IcePlayer IceFloor ] | |
| [ > IcePlayer | no Water no Obstacles no Transformer ] -> [ | > IcePlayer ] | |
| [ > IcePlayer | IceTransformer ] -> [ | > IcePlayer IceTransformer ] | |
| endloop | |
| [ > IcePlayer | Crate no Iced ] -> [ IcePlayer | Iced Crate ] | |
| ( 火叶子 ) | |
| [ > FirePlayer | Bomb no Iced ] -> [ > FirePlayer | LightBomb ] | |
| [ > FirePlayer | Iced ] -> [ > FirePlayer | ] | |
| [ > FirePlayer | WoodCrate ] -> [ > FirePlayer | Ash ] | |
| ( 土叶子 ) | |
| [ > EarthPlayer | Pit ] -> [ EarthPlayer | StuffedPit ] | |
| ( 铁叶子 ) | |
| [ > IronPlayer | BrokenWall ] -> [ > IronPlayer | Ash ] | |
| [ moving IronPlayer ] -> [ moving IronPlayer moving Magnetized ] | |
| startloop | |
| [ moving Magnetized | stationary IronCrate ] -> [ moving Magnetized | moving Magnetized moving IronCrate ] | |
| [ stationary Iced moving IronCrate ] -> [ moving Iced moving IronCrate ] | |
| endloop | |
| [ > Magnetized | stationary Crate ] -> [ > Magnetized | > Crate ] | |
| [ > Magnetized | stationary Obstacles no Crate ] -> cancel | |
| [ Magnetized ] [ > Crate | stationary Obstacles no Crate ] -> cancel | |
| ( 任何叶子 ) | |
| [ > Player no Magnetized | Iced Crate ] -> [ Player | Iced > Crate ] | |
| [ > Player | Iced Crate no IronCrate ] -> [ Player | Iced > Crate ] | |
| [ Iced > Crate no Magnetized | no Obstacles no Water ] -> [ | Iced > Crate ] | |
| [ Iced > Crate no Magnetized | no Obstacles Water ] -> [ | Iced Crate Water ] | |
| [ > Player | Crate ] -> [ > Player | > Crate ] | |
| [ > Player | FireTail ] -> [ Player | FireTail ] | |
| [ > Player no IronPlayer no FirePlayer | IceFloor no Obstacles ] -> [ | > Player IceFloor ] | |
| [ > WoodCrate | IceFloor no Obstacles ] -> [ | > WoodCrate IceFloor ] | |
| ( 更新上次的位置 ) | |
| late [ PreviousLocation ] [ CurrentLocation no Player ] -> [ ] [ CurrentLocation ] | |
| late [ CurrentLocation no Player ] -> [ PreviousLocation ] | |
| late [ CurrentLocation ] -> [ ] | |
| ( 火叶子后处理 ) | |
| late [ FireTail ] -> [ ] | |
| late [ PreviousLocation ] [ FirePlayer ] -> [ PreviousLocation FireTail ] [ FirePlayer ] | |
| ( 土叶子后处理 ) | |
| late [ PreviousLocation no Transformer ] [ EarthPlayer ] -> [ PreviousLocation BrokenWall ] [ EarthPlayer ] | |
| ( 给我变 ) | |
| late [ Player IceTransformer ] -> [ IcePlayer IceTransformer JustTransformed ] sfx4 | |
| late [ Player FireTransformer ] -> [ FirePlayer FireTransformer JustTransformed ] sfx1 | |
| late [ Player EarthTransformer ] -> [ EarthPlayer EarthTransformer JustTransformed ] sfx0 | |
| late [ Player IronTransformer ] -> [ IronPlayer IronTransformer JustTransformed ] sfx3 | |
| late [ Player NormalTransformer ] -> [ NormalPlayer NormalTransformer JustTransformed ] sfx2 | |
| ( 溺水 ) | |
| late [ PrepareToDrown ] -> [ ] | |
| late [ WontDrown ] -> [ ] | |
| late [ Magnetized Water ] -> [ Magnetized Water PrepareToDrown ] | |
| late [ Magnetized Pit ] -> [ Magnetized Pit PrepareToDrown ] | |
| late [ Magnetized IceFloor ] -> [ Magnetized IceFloor PrepareToDrown ] | |
| late [ Magnetized no PrepareToDrown ] [ Magnetized ] -> [ Magnetized ][ Magnetized WontDrown ] | |
| late [ no WontDrown IronPlayer IceFloor ] -> [ StuffedWater ] | |
| late [ no WontDrown IronCrate IceFloor ] -> [ StuffedWater no Iced ] | |
| late [ FirePlayer IceFloor ] -> [ StuffedWater ] | |
| late [ no WontDrown Player Water ] -> [ StuffedWater ] | |
| late [ no WontDrown Crate Water ] -> [ StuffedWater no Iced ] | |
| late [ no WontDrown Player Pit ] -> [ StuffedPit ] | |
| late [ no WontDrown Crate Pit ] -> [ StuffedPit ] | |
| ( 更新上一步的位置 ) | |
| late [ JustTransformed ] [ PreviousLocation ] -> [ ] [ ] | |
| late [ JustTransformed ] -> [ ] | |
| ============== | |
| WINCONDITIONS | |
| ============== | |
| Some Player on Flag | |
| ======= | |
| LEVELS | |
| ======= | |
| ######### | |
| #01234..# | |
| #......OF | |
| #.P.*...# | |
| #.......# | |
| %.BBB..&. | |
| #%%%%##B. | |
| ######%#### | |
| #01234....# | |
| #.P....O..F | |
| #.O.O.....# | |
| #......~*/# | |
| %.OOO.~~./# | |
| #%%%%.....# | |
| message Ice Level 1 | |
| ############### | |
| #.....#...*.#.# | |
| #.P.*.~..1..#0F | |
| #.....#.....#*# | |
| #**...###~###.# | |
| ###~###.....#~# | |
| ###~###.....#~# | |
| #.....#...*.~.# | |
| #..0..#.....#.# | |
| #.....#.....#1# | |
| ############### | |
| message Ice level 2 | |
| ~~~~~~~~~~~~~~ | |
| ~~~~~~~~~~~~~~ | |
| ####~~~~~~#### | |
| #..#~~~~*~#..# | |
| #...~~*~~*...F | |
| #P..*~~~~~...# | |
| #...~~~~~~...# | |
| #1..~~~*~~...# | |
| #...~~~~~~...# | |
| #..#~*~~~~#..# | |
| ####~~*~~~#### | |
| ~~~~~~~~~~~~~~ | |
| ~~~~~~~~~~~~~~ | |
| message Fire level 1 | |
| ###F######### | |
| #~~~~~#..B%0# | |
| #~~~~~#...%%# | |
| #.....#.....# | |
| P....***....# | |
| #..2..#..*..# | |
| #.....##~~~## | |
| #%%%%%##~~~## | |
| ~..B.*O.....# | |
| ~....O*.....# | |
| ############# | |
| message Fire and ice level 1 | |
| #P########### | |
| #.#...#.#...# | |
| #...1/O.~.2.# | |
| #.#...#.#...# | |
| #.##~##.##*## | |
| #.#.........# | |
| #.##*##.##*## | |
| #.#./.#.#~~~# | |
| #%~.0O*.*~B~# | |
| #.#...#.#~~~# | |
| #F########### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment