Skip to content

Instantly share code, notes, and snippets.

@gamesbyangelina
Created March 4, 2025 22:08
Show Gist options
  • Save gamesbyangelina/1843f6a3cc2c4cc11335e3dc624b6785 to your computer and use it in GitHub Desktop.
Save gamesbyangelina/1843f6a3cc2c4cc11335e3dc624b6785 to your computer and use it in GitHub Desktop.
Magnaban - Mike's Version (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Magnaban - Mike's Version (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
% = IMagnet and 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 ]
(Imagnet pushes away magnets)
[Imagnet | Magnet] -> [Imagnet | > Magnet]
(Magnets push away Player)
[> Magnet | stationary Player] -> [> Magnet | > Player]
(Magnets and IMagnets can't end a turn together, forcing a new turn)
Late [ IMagnet | Magnet] -> [ IMagnet | Magnet ] again
(crates stick to each other)
[ moving Magnet | stationary Magnet ] -> [ moving Magnet | moving Magnet ]
==============
WINCONDITIONS
==============
all Target on Magnet
=======
LEVELS
=======
message "It's a busy day down at the Magnet Warehouse."
#########
#.......#
#.P.*..O#
#.......#
#########
#######
#.P#..#
#..O..#
#..O..#
#.*#*.#
#..#..#
#######
#######
#.#*OO#
#...O##
#.*.*.#
#..P..#
#######
message "Unfortunately our new product is causing some storage issues."
########
###..X.#
#...#X##
#.*...O#
#.P.#.##
########
#########
#O..%..O#
##.###.##
##*#..*.#
##.P....#
#########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment