Created
March 4, 2025 20:32
-
-
Save gamesbyangelina/8e889ee19da05f37617d3067f39cdd38 to your computer and use it in GitHub Desktop.
Magnaban (PuzzleScript Script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ] | |
(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 | |
======= | |
(These are just test levels, to let you play around with the game pieces) | |
(Feel free to delete them after you make your own) | |
####### | |
#.OO..# | |
#.....# | |
#.*P..# | |
#..*..# | |
#.....# | |
####### | |
####### | |
#.OO..# | |
#..X..# | |
#.*P..# | |
#..*..# | |
#.....# | |
####### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment