Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created October 7, 2019 20:31
Show Gist options
  • Select an option

  • Save jcmiller11/9b49cac258928f47c2e312ab93cb1990 to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/9b49cac258928f47c2e312ab93cb1990 to your computer and use it in GitHub Desktop.
I Have No Mouth, And I Must Find My Hiding Spot (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title I Have No Mouth, And I Must Find My Hiding Spot
author Corey Martin & Alan Hazelden - mod by jc
run_rules_on_level_start
========
OBJECTS
========
Background
#000000
00000
00000
00000
00000
00000
Floor
#000000
00000
00000
00000
00000
00000
Wall
#393875 #4f4e8d
00000
01000
11111
11111
00000
PlayerRight
#990c33 #ffffff #c83242 #cf5c50 black
.0000
.2121
22121
23333
.3..3
PlayerLeft
#990c33 #ffffff #c83242 #cf5c50 black
0000.
1212.
12122
33332
3..3.
(PlayerUp
#990c33 #ffffff #c83242 #cf5c50 black
.000.
.222.
22222
23332
.3.3.
PlayerDown
#990c33 #ffffff #c83242 #cf5c50 black
.000.
.121.
21212
23332
.3.3.)
Crate
#f99596 #7a41c7 #f08687 black
01310
03130
01310
00000
22222
AboveCrate
#f99596
.....
.....
.....
.....
00000
BelowCrate
#f08687
00000
.....
.....
.....
.....
Decor1
#786d4f
.0...
.00..
..0..
..0..
..00.
Decor2
#786d4f
...0.
...0.
..00.
..0..
..0..
Decor3
#13694d #0f5c43
.0..0
010.1
.0100
.00.1
..00.
Decor4
#79dbb2
.....
.0...
.0.0.
..00.
.....
BelowWall
#444
00000
.....
.....
.....
.....
AboveWall
#93815f
.....
.....
.....
.....
00000
WallD
#93815f #444
.....
.....
.....
00000
11111
WallL
#93815f
0....
0....
0....
0....
0....
WallR
#93815f
....0
....0
....0
....0
....0
WallLR
#93815f
0...0
0...0
0...0
0...0
0...0
AboveWallL
#93815f
.....
.....
.....
0....
0....
AboveWallR
#93815f
.....
.....
.....
....0
....0
AboveWallLR
#93815f
.....
.....
.....
0...0
0...0
AboveWallLRwithR
#93815f
....0
....0
....0
0...0
0...0
AboveWallLRwithL
#93815f
0....
0....
0....
0...0
0...0
=======
LEGEND
=======
. = Background
- = Floor
# = Wall
P = PlayerRight and Floor
* = Crate and Floor
1 = Decor1
2 = Decor2
3 = Decor3
4 = Decor4
Player = PlayerRight or PlayerLeft (or PlayerUp or PlayerDown)
Winnables = PlayerRight or PlayerLeft or Crate
AboveDecoration = AboveWall or AboveWallL or AboveWallR or WallL or WallR or WallLR
=======
SOUNDS
=======
Player MOVE 19191107
Crate MOVE 19410707
Player action 25912309
Undo 34883507
Restart 29257109
(
EndLevel 44101909
)
endlevel 90138909
================
COLLISIONLAYERS
================
Background
Floor
BelowWall,BelowCrate
Player, Wall, Crate
Decor1, Decor2, Decor3, Decor4
AboveDecoration
WallD, AboveWallLR, AboveWallLRwithR, AboveWallLRwithL
AboveCrate
======
RULES
======
[ left Player ] -> [ left PlayerLeft ]
[ right Player ] -> [ right PlayerRight ]
([ up Player ] -> [ up PlayerUp ]
[ down Player ] -> [ down PlayerDown ])
[ action Player | no Wall ] -> [ action Player | Crate ]
[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Crate | Crate ] -> [ > Crate | > Crate ]
(3D)
late [ AboveCrate ] -> []
late up [ Crate | ] -> [ Crate | AboveCrate ]
late [ BelowCrate ] -> []
late down [ Crate | ] -> [ Crate | BelowCrate ]
down [ Wall | no Wall ] -> [ Wall WallD | BelowWall ]
up [ Wall | no Wall ] -> [ Wall | AboveWall ]
left [ Wall | no Wall ] -> [ Wall WallL | ]
right [ Wall WallL | no Wall ] -> [ Wall WallLR | ]
right [ Wall no AboveDecoration | no Wall ] -> [ Wall WallR | ]
up [ WallL | Wall no AboveDecoration ] -> [ WallL | Wall AboveWallL ]
up [ WallR | Wall no AboveDecoration ] -> [ WallR | Wall AboveWallR ]
up [ WallLR | Wall ] -> [ WallLR | Wall AboveWallLR ]
up [ WallL | Wall WallR ] -> [ WallL | Wall AboveWallLRwithR ]
up [ WallR | Wall WallL ] -> [ WallR | Wall AboveWallLRwithL ]
==============
WINCONDITIONS
==============
All Floor on Winnables
=======
LEVELS
=======
message Press X or Space to create blocks
.....................
................4....
.....3...###.........
...1....##-##........
...2...##---##....1..
.......#--p--#.......
.4.....##---##...3...
........##-##........
....2....###.........
...3...........4.....
.....................
................
................
..2....#####.3..
....####---#....
4...#------#....
....#---p--#....
..3.#------#..4.
....####---#....
.......#####.1..
.............2..
................
.................
.................
...2..#####....3.
.....##---##.4...
.3...#--p--#.....
.....##---##.....
..4...#####...1..
....3.........2..
.................
................
................
..1...###...3...
..2..##-###.....
.....#-p--#..4..
.3...##---#.....
...2..#####.....
..4........3..1.
................
..................
..................
.......####...3...
.1....##--##......
......#----#....4.
..3...#--p-#......
......##--##......
.4.1...####....1..
...2........3.....
..................
...................
..4................
....1..###....4..3.
.3.....#-###.......
......##-p-#.......
...3..#---##....1..
..1...###-#........
..2.....###........
.....4........3....
...................
.................
.................
...2.#######.....
.3...#-----#..1..
.....#--p--#..2..
...4.#-----#.....
.....#######.....
..2..........4.3.
.................
.....................
........#####........
..2....#######....4..
....3..#p----#.......
.......#-###-#.......
.4.....#-###-#.3.....
.....1.#-###-#.......
.....2.#-----#.....3.
...3...#######.......
.....4....##......1..
.....................
4.............1..
....#########.2.3
.2..#---#---#....
....#-p-----#.4..
3...##-###-##..3.
....#-------#....
..4.#########....
.................
.................
.................
3....#######.....
...2.#---###...3.
.4...#---p-#.4...
.....#---###.....
.....#######..1.4
...3..........2..
.................
...............
4..........2...
..3..#####...1.
...4.#---#.....
.....#-p-#.....
.4...#---#..4..
...1.#####.....
...2...........
...........3...
..................
...............1.4
3..1...######..2..
.....###-#--#.....
.4...#------#.....
.....#-p##--#...3.
...3.#------#.4...
.....###-#--#.....
.......######.....
..................
..................
...................
...................
4.....#######....3.
..2...#--p--#......
......#--#--#.....4
...4.##--#--#......
.....#---#--#....2.
.3...#------#..4...
...1.########......
................3..
..4.........1......
...................
.1....#######..1.4.
......#--#--#..2...
..3..##-----##.....
4....#-p-#---#.....
.....##-----##....2
..2...#######......
...4............3..
.....1.....4.......
...................
..............4....
.2...............3.
....4.#######......
......#--#--#......
..3...#--#--#...1..
......#--p--#......
......#######......
...1...........4...
...2........3......
...................
.....................
...........#####.....
3....#######---#.....
...2.#---###---#...3.
.4...#----p----#.4...
.....#---###---#.....
.....#######---#..1.4
...3.......#####..2..
.....................
.......3.......2...
4..................
..2.....###.....4..
.....####p####.....
...4.#-------#.....
.3...#---#---#....4
.....#-------#...3.
.....####-####.....
1.......###....4...
..4.............2..
....1.........3....
...................
...1...............
...2..#######..1...
4.....#-----#....4.
......#-----#......
....3.#--p--#.4....
......#-----#....2.
...4..#-----#......
......#######......
...................
.......4...........
.........4.....2.....
..2..............3...
4......#######.......
......##-#p#-##......
...3..#-------#....4.
......#-#-#-#-#......
....4.#-------#...3..
.3....#########......
................4....
..4.....1........2...
(......1..........
.............3..4
.2...#######.....
4....#.o.o.#.....
.....#o#o#o#.....
.....#.opo.#..4..
..3..#o#o#o#.....
...4.#.o.o.#....3
.....#######.....
...............2.
.3....4..2.......)
4......3...2..3....
..1..............4.
.....#########.....
2..4.#---#---#..2..
.3...#---p---#..2..
.....#---#---#.4...
.....#########.....
..4.............3..
....1...4..3.......
message Thanks for playing! :)
(...................
..1............4...
....3..#####.......
.......#o.o#....1..
.......#o..#....2..
...3...#..o#.......
....2..#o.p#..3....
.4.....#####.......
.............4.....
...................)
(#######
#ooooo#
#ooooo#
#oopoo#
#ooooo#
#ooooo#
#######)
(#########
#o.o#o.o#
#.p.o...#
#o.o#o.o#
#########)
(#########
#...#...#
#...o...#
##.###.##
#oo###oo#
##..#..##
##..p..##
##..#..##
#########)
(..######....
..#..p.#....
..#..#.#####
..#.o#o....#
###..#..o..#
#..o...###.#
#.###...o..#
#..o..#..###
#....o#o.#..
#####.#..#..
....#....#..
....######..)
(..#####..
..#.o.#..
###.#.###
#.p.o...#
#o#.#.#o#
#...o...#
###.#.###
..#.o.#..
..#####..)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment