Created
February 20, 2020 17:05
-
-
Save realDragon11/b5a747899441c9c2dfd7c8fa51a1c115 to your computer and use it in GitHub Desktop.
Ninja Fighting Game (PuzzleScript Script)
This file contains 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 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 Ninja Fighting Game | |
author Brian Malone | |
homepage www.puzzlescript.net | |
======== | |
OBJECTS | |
======== | |
Background | |
Green lightgreen | |
11111 | |
01111 | |
11101 | |
11111 | |
10111 | |
Target | |
Red | |
..0.. | |
.000. | |
.0.0. | |
.000. | |
00000 | |
Wall | |
BROWN DARKBROWN | |
00010 | |
11111 | |
01000 | |
11111 | |
00010 | |
Ninja | |
Black Orange White Blue | |
.000. | |
.202. | |
00000 | |
.000. | |
.0.0. | |
LeftNinja | |
Black Orange White Blue | |
.000. | |
.200. | |
00000 | |
.000. | |
.0.0. | |
RightNinja | |
Black Orange White Blue | |
.000. | |
.002. | |
00000 | |
.000. | |
.0.0. | |
Player | |
Green Orange White Blue | |
.000. | |
.202. | |
00000 | |
.000. | |
.0.0. | |
Shadow | |
Green Orange White Blue | |
.000. | |
.202. | |
00000 | |
.000. | |
.0.0. | |
DeadPlayer | |
Green Orange White Red | |
30003 | |
32023 | |
00000 | |
30003 | |
30303 | |
Crate | |
Orange Yellow | |
00000 | |
0...0 | |
0.1.0 | |
0...0 | |
00000 | |
Door | |
Orange Yellow | |
00000 | |
00010 | |
00010 | |
00000 | |
00000 | |
Hostage | |
Blue Orange White | |
.000. | |
.202. | |
00000 | |
.000. | |
.0.0. | |
Sam | |
Blue Orange White Red | |
.0002 | |
.3032 | |
00000 | |
.000. | |
.0.0. | |
Key | |
Orange Yellow | |
..... | |
.1... | |
1.111 | |
.1..1 | |
..... | |
======= | |
LEGEND | |
======= | |
. = Background | |
# = Wall | |
P = Player | |
N = Ninja | |
* = Crate | |
@ = Crate and Target | |
O = Target | |
L = LeftNinja | |
R = LeftNinja | |
D = Door | |
U = DeadPlayer | |
H = Hostage | |
K = Key | |
S = Sam | |
======= | |
SOUNDS | |
======= | |
Crate MOVE 36772507 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background, | |
DeadPlayer,Shadow | |
LeftNinja, RightNinja, Crate, Wall | |
Player, Ninja, Wall, Crate, Door, Hostage | |
Player, Sam | |
Target, Key, Sam | |
====== | |
RULES | |
====== | |
[ > Player | Crate ] -> [ > Player | > Crate ] | |
([ > Player | Wall ] -> [ DeadPlayer | Wall ]) | |
[ Ninja | Player] -> [ > Ninja | Player] | |
[ Ninja | action Player] -> [ Ninja | DeadPlayer] | |
[ Ninja | stationary Player] -> [ Ninja | DeadPlayer] | |
[ stationary LeftNinja ] -> [ left LeftNinja ] | |
[ stationary RightNinja ] -> [ right RightNinja ] | |
[ > LeftNinja | Wall ] -> [ RightNinja | Wall ] | |
[ > RightNinja | Wall ] -> [ LeftNinja | Wall ] | |
[ > LeftNinja | Door ] -> [ RightNinja | Door ] | |
[ > RightNinja | Door ] -> [ LeftNinja | Door ] | |
[ > Player | Door ] -> [Player | ] | |
[ > Player | Hostage ] -> [Player | ] | |
[ > LeftNinja | Player ] -> [ RightNinja | DeadPlayer ] | |
[ > RightNinja | Player ] -> [ LeftNinja | DeadPlayer ] | |
late [ > Ninja | Player ] -> [ Ninja | DeadPlayer ] | |
[ Player ] -> [ Player Shadow ] | |
late [ Player Shadow | Ninja] -> [DeadPlayer | Ninja] | |
late [Shadow] -> [] | |
late [Player LeftNinja] -> [DeadPlayer LeftNinja] | |
late [Player RightNinja] -> [DeadPlayer RightNinja] | |
late [Player Key] [Door] -> [Player] [] | |
late [Sam | Ninja] -> [Sam | ] | |
late [Sam LeftNinja] -> [Sam] | |
late [Sam RightNinja] -> [Sam] | |
============== | |
WINCONDITIONS | |
============== | |
All Target on Crate | |
No Hostage | |
======= | |
LEVELS | |
======= | |
message The ninjas are invading. Only by activing the shrines may you save your people. | |
########### | |
#.....N...# | |
#...N.D*O.# | |
#....L....# | |
#..P......# | |
#.........# | |
#..O.D..*.# | |
#.........# | |
########### | |
message Save the hostages! It's okay to die, as long as you win! | |
########### | |
#..H.....H# | |
#......L..# | |
#.........# | |
#..P......# | |
#.........# | |
#.N.....N.# | |
#D......DH# | |
########### | |
message Keys open doors! | |
########### | |
#H.......K# | |
#.R..#L...# | |
#...L.....# | |
#..P......# | |
#......N#.# | |
#...l...D## | |
#......#H## | |
########### | |
message Samurai kill ninjas! | |
########### | |
#.......NH# | |
#.........# | |
#...PS....# | |
#.........# | |
#.........# | |
#N.##.##### | |
#H.#D.L..H# | |
#####N##### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment