Skip to content

Instantly share code, notes, and snippets.

@soggychips
Last active May 3, 2022 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soggychips/c4028000b2bf11143a432f0a68160c06 to your computer and use it in GitHub Desktop.
Save soggychips/c4028000b2bf11143a432f0a68160c06 to your computer and use it in GitHub Desktop.
Definitely Not Blockchain (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Definitely Not Blockchain
author VinceKully
homepage https://indreams.me/VinceKully
========
OBJECTS
========
Background
#d1cbc2
Floor
#c29a67
Target
yellow lightgreen #c29a67
22222
21112
21012
21112
22222
Wall
#8a6638
Player
white
Shell
lightgray
CrumbleBlock
#c29a67 #806542
00000
01010
00100
01010
00000
CrumbledBlock
transparent
Hole
black
_playercheck_token
transparent
=======
LEGEND
=======
, = Background
. = Floor
# = Wall
P = Player and Floor
* = Shell and Floor
@ = Shell and Target
O = Target
Z = CrumbleBlock
x = Hole
=======
SOUNDS
=======
Player Move 51620307
Player Create 42805703
EndLevel 80382303
CrumbledBlock Create 62075502
Hole Create 55259302
================
COLLISIONLAYERS
================
Background
_playercheck_token
Hole
Target, Floor, CrumbleBlock, CrumbledBlock
Player, Wall, Shell
======
RULES
======
(spawn a new player if player touches a shell)
late [ Player | Shell ] -> [ Player | Player ]
(add rigidness to player structure)
[ > Player | Wall ] -> cancel
(Delete player if they stand on a hole)
[> Player | Hole ] -> [ | Hole]
(Crumble block logic)
late [Player CrumbleBlock] -> [Player CrumbledBlock]
late [Player | CrumbledBlock] -> [Player | Hole]
(token to check if no remaining players -> restart)
late random [] -> [_playercheck_token]
late [player] [_playercheck_token] -> [player] []
late [_playercheck_token] -> restart message F
==============
WINCONDITIONS
==============
all Player on Target
all Target on Player
=======
LEVELS
=======
,,,,,,,,,,,
,#########,
,#.P....O#,
,#########,
,,,,,,,,,,,
,,,,,,,,,,,
,#########,
,#.p.*..o#,
,#......o#,
,#########,
,,,,,,,,,,,
,,,,,,,,,,,,,
,###########,
,#.........#,
,#.......o.#,
,#p.***.ooo#,
,###########,
,,,,,,,,,,,,,
,,,,,,,,,,
,######,,,
,#..*o###,
,#p..oo*#,
,#....###,
,######,,,
,,,,,,,,,,
,,,,,,,,,,,,,,
,,,,,,###,,,,,
,,,,,#.*.#,,,,
,,,,,#....###,
,,####.....##,
,#...#.O....#,
,#P..*OO@#*#,,
,#.....O.#.#,,
,,#......##,,,
,,,#.....#,,,,
,,,,#####,,,,,
,,,,,,,,,,,,,,
,,,,,,,,,,,
,#########,
,#....*..#,
,#...*...#,
,#P.x.OO.#,
,#....O..#,
,#.......#,
,#########,
,,,,,,,,,,,
,,,,,,,,,,,,,,
,############,
,#........@.#,
,#.......*..#,
,#..z...*.o.#,
,#.....*...*#,
,#..z.*...o.#,
,#...*.....*#,
,##.z.....o.#,
,#p........*#,
,############,
,,,,,,,,,,,,,,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment