Skip to content

Instantly share code, notes, and snippets.

@joshuahhh
Created September 1, 2025 09:42
Show Gist options
  • Select an option

  • Save joshuahhh/863cf2256a9588f05f939dcd76b37703 to your computer and use it in GitHub Desktop.

Select an option

Save joshuahhh/863cf2256a9588f05f939dcd76b37703 to your computer and use it in GitHub Desktop.
Another Mouth To Feed (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Another Mouth To Feed
author Marcel, encoded by Josh
verbose_logging
========
OBJECTS
========
Background
white
Mouth O
red
Apple @
green
.....
.000.
.000.
.000.
.....
Player H
black
.....
.000.
.0.0.
.000.
.....
BodyFixed F
black
.....
.000.
.000.
.000.
.....
BodyUp U
black
.000.
.000.
.000.
.000.
.....
BodyDown D
black
.....
.000.
.000.
.000.
.000.
BodyLeft L
black
.....
0000.
0000.
0000.
.....
BodyRight R
black
.....
.0000
.0000
.0000
.....
Wall #
grey
=======
LEGEND
=======
. = Background
Obstacle = Player or BodyFixed or BodyUp or BodyDown or BodyLeft or BodyRight or Wall
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Mouth
BodyUp, BodyDown, BodyLeft, BodyRight
BodyFixed, Player, Wall, Apple
======
RULES
======
( Backtracking )
up [ > Player | BodyDown ] -> [ | Player ]
down [ > Player | BodyUp ] -> [ | Player ]
left [ > Player | BodyRight ] -> [ | Player ]
right [ > Player | BodyLeft ] -> [ | Player ]
( Don't walk into obstacles )
[ > Player | Obstacle ] -> [ Player | Obstacle ]
( Leave a trail as you move )
up [ > Player ] -> [ > Player BodyUp ]
down [ > Player ] -> [ > Player BodyDown ]
left [ > Player ] -> [ > Player BodyLeft ]
right [ > Player ] -> [ > Player BodyRight ]
( Push the apple )
[ > Player | Apple ] -> [ > Player | > Apple ]
( The apple falls )
late down [ Apple no Mouth | no Obstacle ] -> [ | Apple ]
( If you fail to move, don't let trail pile up where you are )
late [ Player Obstacle ] -> [ Player ]
==============
WINCONDITIONS
==============
some Apple on Mouth
=======
LEVELS
=======
FH.
O@.
..@..
FH#..
O....
O..
.@.
FRH
O.....
..@#..
FRH...
....HF
.@....
##....
O.....
......
......
....O#
.#..##
.#....
...#@.
.FRRH.
F.....
H.....
..#...
..@...
..#..O
..#...
......
FH....
###...
..@...
..#...
.....O
..#...
......
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment