Skip to content

Instantly share code, notes, and snippets.

@joshuahhh
Created September 1, 2025 10:03
Show Gist options
  • Select an option

  • Save joshuahhh/87cfb7e40fdd0d7e3b0acd842767ae71 to your computer and use it in GitHub Desktop.

Select an option

Save joshuahhh/87cfb7e40fdd0d7e3b0acd842767ae71 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 white
.....
.000.
.010.
.000.
.....
PlayerU
black
PlayerD
black
PlayerL
black
PlayerR
black
BodyFixed F
black
.....
.000.
.000.
.000.
.....
BodyGoingU
black
.000.
.000.
.000.
.000.
.....
BodyGoingD
black
.....
.000.
.000.
.000.
.000.
BodyGoingL
black
.....
0000.
0000.
0000.
.....
BodyGoingR
black
.....
.0000
.0000
.0000
.....
BodyWentU
black
.....
.000.
.000.
.000.
.000.
BodyWentD
black
.000.
.000.
.000.
.000.
.....
BodyWentL
black
.....
.0000
.0000
.0000
.....
BodyWentR
black
.....
0000.
0000.
0000.
.....
Wall #
grey
=======
LEGEND
=======
R = BodyWentR and BodyGoingR
S = Player and BodyWentR
. = Background
Obstacle = Player or BodyFixed or BodyGoingU or BodyGoingD or BodyGoingL or BodyGoingR or Wall
Went = BodyWentU or BodyWentD or BodyWentL or BodyWentR
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Mouth
PlayerU, PlayerD, PlayerL, PlayerR
BodyGoingU, BodyGoingD, BodyGoingL, BodyGoingR
BodyWentU, BodyWentD, BodyWentL, BodyWentR
BodyFixed, Player, Wall, Apple
======
RULES
======
( Backtracking )
up [ > Player Went | BodyGoingD ] -> [ | Player ]
down [ > Player Went | BodyGoingU ] -> [ | Player ]
left [ > Player Went | BodyGoingR ] -> [ | Player ]
right [ > Player Went | BodyGoingL ] -> [ | Player ]
( Don't walk into obstacles )
[ > Player | Obstacle ] -> [ Player | Obstacle ]
( Leave a trail as you move )
up [ > Player ] -> [ > Player BodyGoingU > PlayerU ]
down [ > Player ] -> [ > Player BodyGoingD > PlayerD ]
left [ > Player ] -> [ > Player BodyGoingL > PlayerL ]
right [ > Player ] -> [ > Player BodyGoingR > PlayerR ]
( 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 ]
late [ PlayerU ] -> [ BodyWentU ]
late [ PlayerD ] -> [ BodyWentD ]
late [ PlayerL ] -> [ BodyWentL ]
late [ PlayerR ] -> [ BodyWentR ]
==============
WINCONDITIONS
==============
some Apple on Mouth
=======
LEVELS
=======
FH.
O@.
..@..
FH#..
O....
O..
.@.
FRS
O.....
..@#..
FRS...
....HF
.@....
##....
O.....
......
......
....O#
.#..##
.#....
...#@.
.FRRS.
F.....
H.....
..#...
..@...
..#..O
..#...
......
FH....
###...
..@...
..#...
.....O
..#...
......
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment