Skip to content

Instantly share code, notes, and snippets.

@gamesbyangelina
Created March 4, 2025 16:43
Show Gist options
  • Save gamesbyangelina/4c04bf4af04450eb6e9db4d37055069f to your computer and use it in GitHub Desktop.
Save gamesbyangelina/4c04bf4af04450eb6e9db4d37055069f to your computer and use it in GitHub Desktop.
Magnaban (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Magnaban (adapted from David Skinner's block pushing game, and Alan Hazelden's Sticky Candy Saga)
author Mike Cook
homepage www.possibilityspace.org/cc
========
OBJECTS
========
Background
lightgreen green
11111
01111
11101
11111
10111
Target
darkblue
.....
.000.
.0.0.
.000.
.....
Wall
brown darkbrown
00010
11111
01000
11111
00010
Player
black orange white blue
.000.
.111.
22222
.333.
.3.3.
Magnet
red white orange
22222
20002
20202
21212
22222
IMagnet
blue white orange
22222
20002
20202
21212
22222
=======
LEGEND
=======
. = Background
# = Wall
P = Player
* = Magnet
X = IMagnet
@ = Magnet and Target
O = Target
=======
SOUNDS
=======
Magnet move 36772507
================
COLLISIONLAYERS
================
Background
Target
Player, Wall, Magnet, IMagnet
======
RULES
======
(players can push crates)
[ > Player | Magnet ] -> [ > Player | > Magnet ]
[ > Player | IMagnet ] -> [ > Player | > IMagnet ]
Late [ IMagnet | Magnet | No Wall] -> [ IMagnet | | Magnet ]
(crates stick to each other)
[ moving Magnet | stationary Magnet ] -> [ moving Magnet | moving Magnet ]
==============
WINCONDITIONS
==============
all Target on Magnet
=======
LEVELS
=======
######
#.O..#
#..X.#
#@P..#
#..*.#
#....#
######
######
#....#
#.#P.#
#.*@.#
#.O@.#
#....#
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment