Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
Created February 3, 2020 21:41
Show Gist options
  • Select an option

  • Save jcmiller11/f809cd3e355ac3e6b879fedb2e67532c to your computer and use it in GitHub Desktop.

Select an option

Save jcmiller11/f809cd3e355ac3e6b879fedb2e67532c to your computer and use it in GitHub Desktop.
Marcos' Old Flash Grid Game - w tween (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Marcos' Old Flash Grid Game - w tween
author knexator
homepage www.puzzlescript.net
run_rules_on_level_start
again_interval 0.1
========
OBJECTS
========
Background
gray
Player
White
00.00
0...0
.....
0...0
00.00
LU
Blue
..0..
..0..
000..
.....
.....
UU
Blue
0...0
.0.0.
..0..
.....
.....
RU
Blue
..0..
..0..
..000
.....
.....
RR
Blue
....0
...0.
..0..
...0.
....0
LD
Blue
.....
.....
000..
..0..
..0..
DD
Blue
.....
.....
..0..
.0.0.
0...0
RD
Blue
.....
.....
..000
..0..
..0..
LL
Blue
0....
.0...
..0..
.0...
0....
randomTile
Blue
.....
.....
..0..
.....
.....
justMoved
black
willMove
Darkred
.....
.0.0.
..0..
.0.0.
.....
=======
LEGEND
=======
MainTile = LU or RU or LD or RD
Tile = LU or RU or LD or RD or UU or RR or DD or LL
. = Background
@ = randomTile and Player
! = randomTile
L = LU or LD
R = RU or RD
U = LU or RU
D = LD or RD
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Player
Tile, randomTile
willMove
justMoved
======
RULES
======
[randomTile] -> [random MainTile]
[willMove Tile] -> [action Tile]
[UU] -> [justMoved RU]
[RR] -> [justMoved RD]
[DD] -> [justMoved LD]
[LL] -> [justMoved LU]
[action LU] -> [justMoved UU] again
[action RU] -> [justMoved RR] again
[action RD] -> [justMoved DD] again
[action LD] -> [justMoved LL] again
LEFT [justMoved L | R] -> [justMoved L | willMove R] again
RIGHT [justMoved R | L] -> [justMoved R | willMove L] again
UP [justMoved U | D] -> [justMoved U | willMove D] again
DOWN [justMoved D | U] -> [justMoved D | willMove U] again
[justMoved Tile] -> [Tile]
[action Player Tile] -> [Player willMove Tile] again
==============
WINCONDITIONS
==============
No Player
=======
LEVELS
=======
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!@!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment