Created
February 27, 2020 14:24
-
-
Save realDragon11/339f335e08b581f4d78740650dbd83b9 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 | |
DeadPlayer CREATE 35959504 | |
Door destroy 17536102 | |
Ninja destroy 89054300 | |
================ | |
COLLISIONLAYERS | |
================ | |
Background, | |
DeadPlayer,Shadow | |
LeftNinja, RightNinja, Crate, Wall | |
Player, Ninja, Wall, Crate, Door, Hostage, Sam | |
Target, Key | |
====== | |
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...# | |
#......*O.# | |
#.........# | |
#..P......# | |
#...L.....# | |
#..O....*.# | |
#.....L...# | |
########### | |
message Be wary around doors! | |
########### | |
#.....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##### | |
message You're almost done! | |
########### | |
#H......DK# | |
#.R..#L.N.# | |
#...L.....# | |
#..P......# | |
#......N#.# | |
#...l...D## | |
#H.....#H## | |
########### | |
message You have saved your people! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment