Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Last active August 17, 2021 15:30
Show Gist options
  • Select an option

  • Save jcmiller11/4be79d9d2aabc62ad1700b67cafd2fae to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/4be79d9d2aabc62ad1700b67cafd2fae to your computer and use it in GitHub Desktop.
Cookie Hole (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Cookie Hole
author Beekie
homepage www.puzzlescript.net
run_rules_on_level_start
========
OBJECTS
========
Background
#B080FF
00000
00000
00000
00000
00000
Wall
#8050EF
00000
00000
00000
00000
00000
Player
#B00000 #D03030
.111.
.000.
.000.
.000.
.....
PlayerTop
#D03030
.....
.....
.....
.000.
.000.
CookieFlat
#404060 #607070 white
10001
11111
00000
22222
00000
CookieFlatTop
#607070 #404060
.....
.....
00000
01110
01010
CookieV
#404060 #607070 white
.020.
.020.
.020.
.020.
.020.
CookieVTop
#404060 #607070 white
.....
.121.
.121.
.121.
.121.
CookieH
#404060 #607070
01110
01010
01110
00000
.....
CookieHTop
#404060 #607070 white
.....
11111
22222
11111
00000
HoleV
#7040EF
.000.
.000.
.000.
.000.
.000.
HoleH
#7040EF
.....
00000
00000
00000
.....
FilledV
#605070 #9080EF
.010.
.010.
.010.
.010.
.010.
FilledH
#605070 #9080EF
.....
00000
11111
00000
.....
=======
LEGEND
=======
. = Background
# = Wall
P = Player
1 = CookieFlat
2 = CookieV
3 = CookieH
4 = HoleV
5 = HoleH
Cookie = CookieFlat or CookieV or CookieH
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
HoleV, HoleH, FilledV, FilledH
Player, Wall, CookieFlat, CookieV, CookieH
CookieFlatTop, CookieVTop, PlayerTop, CookieHTop
======
RULES
======
horizontal [> Player | stationary CookieFlat] -> [> Player |> CookieV]
horizontal [> Player | stationary CookieV] -> [> Player |> CookieFlat]
vertical [> Player | stationary CookieV] -> [> Player | > CookieV]
vertical [> Player | stationary CookieFlat] -> [> Player |> CookieH]
vertical [> Player | stationary CookieH] -> [> Player |> CookieFlat]
horizontal [> Player | stationary CookieH] -> [> Player | > CookieH]
[> Cookie | Cookie] -> [> Cookie | > Cookie]
[stationary CookieV HoleV] -> [FilledV]
[stationary CookieH HoleH] -> [FilledH]
(TOPS)
late down [no CookieHTop | CookieH] -> [CookieHTop | CookieH]
late down [CookieHTop | no CookieH] -> [no CookieHTop | no CookieH]
late down [no CookieVTop | CookieV] -> [CookieVTop | CookieV]
late down [CookieVTop | no CookieV] -> [no CookieVTop | no CookieV]
late down [no CookieFlatTop | CookieFlat] -> [CookieFlatTop | CookieFlat]
late down [CookieFlatTop | no CookieFlat] -> [no CookieFlatTop | no CookieFlat]
late down [no PlayerTop | Player] -> [PlayerTop | Player]
late down [PlayerTop | no Player] -> [no PlayerTop | no Player]
LATE [CookieV HoleV] -> again
LATE [CookieH HoleH] -> again
==============
WINCONDITIONS
==============
no Cookie
=======
LEVELS
=======
#############
#.p.1..5..4.#
#.2...###...#
#.....###...#
#############
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment