STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/13486394?noj=FRM13486394-14DC" width="1" height="1"></div>

NINJA.swf

This is the info page for
Flash #82246

(Click the ID number above for more basic data on this flash file.)


Text
YOU

WHITE

BLACK

NINJA

Click to play

JUMP

RUN
LEFT

RUN
RIGHT

ATTACK

GAME OVER

YOUR TOTAL SCORE IS

ActionScript [AS1/AS2]

Frame 1
stop(); onEnterFrame = function () { Reset = true; };
Frame 2
function resetAll() { ninjaId = 0; Ninjat = new Array(); newWaitingTime = 100; waitingTime = newWaitingTime; maxNumberOfEnemies = 100; numberOfEnemies = 0; pisteet = 0; showPisteet = 0; createEnemy(); Ninjat[0][10] = 100; happi = 100; Main.attachMovie("nuoli", "Nuoli", maxNumberOfEnemies + 10); Main.Nuoli._x = 300; Main.Nuoli._y = 200; aSwing = new Sound(); aHit = new Sound(); aHaja = new Sound(); aSwing.attachSound("swing"); aHit.attachSound("hit"); aHaja.attachSound("haja"); Reset = false; } function mittarit() { showPisteet = showPisteet + ((pisteet - showPisteet) / 2); pisteMittari.text = Math.round(showPisteet); happi = happi - ((happi - Ninjat[0][10]) / 2); happiPalikka._xscale = happi; } function controls(ninjaName, i) { if (Ninjat[i][9]) { if (Ninjat[i][4]) { if (Ninjat[i][7] == 2) { osumaTarkistus(ninjaName, i); } if (Ninjat[i][7] > 0) { Ninjat[i][7]--; } else { Ninjat[i][4] = false; } } if ((Ninjat[i][8] == 0) && (!Ninjat[i][4])) { if (!Ninjat[i][0]) { Main[ninjaName].gotoAndStop("idle_" + Ninjat[i][3]); } else { Main[ninjaName].gotoAndStop("jump_" + Ninjat[i][3]); } } } } function physics(ninjaName, i) { if (Main[ninjaName]._x < 20) { Main[ninjaName]._x = 20; } if (Main[ninjaName]._x > 540) { Main[ninjaName]._x = 540; } if (Ninjat[i][0]) { Main[ninjaName]._y = Main[ninjaName]._y - Ninjat[i][1]; Ninjat[i][1]--; } if (Main[ninjaName]._y <= 400) { Ninjat[i][2]++; Main[ninjaName]._y = Main[ninjaName]._y + Ninjat[i][2]; } else { Ninjat[i][2] = 0; Ninjat[i][0] = false; } Main[ninjaName]._x = Main[ninjaName]._x + Math.round(Ninjat[i][13]); Ninjat[i][13] = Ninjat[i][13] / 2; Main[ninjaName]._x = Main[ninjaName]._x + Ninjat[i][8]; if (!Ninjat[i][9]) { if (Ninjat[i][14] > 0) { Ninjat[i][14]--; } else { Main[ninjaName].removeMovieClip(); } } } function createEnemy() { ninjaName = "Ninja" + ninjaId; Ninjat[ninjaId] = new Array(true, 0, 0, "right", false, false, 0, 0, 20, true, 30, 10, 0, 0, 3); Main.attachMovie("ninja", ninjaName, ninjaId); if (ninjaId == 0) { Main[ninjaName]._y = 300; Main[ninjaName]._x = 300; } else { Main[ninjaName]._y = 300; if (Math.round(Math.random() * 2) == 1) { Main[ninjaName]._x = Math.round((Math.random() * 600) - 600); } else { Main[ninjaName]._x = Math.round((Math.random() * 600) + 600); } } ninjaId++; } function kake() { if ((Key.isDown(39) && (!Key.isDown(37))) && (!Key.isDown(32))) { if ((Ninjat[0][3] != "right") || (Ninjat[0][8] == 0)) { Main.Ninja0.gotoAndStop("run_right"); } if (Ninjat[0][0]) { Main.Ninja0.gotoAndStop("jump_right"); } else { Main.Ninja0.gotoAndStop("run_right"); } Ninjat[0][3] = "right"; Ninjat[0][8] = 20; } else if ((Key.isDown(37) && (!Key.isDown(39))) && (!Key.isDown(32))) { if ((Ninjat[0][3] != "left") || (Ninjat[0][8] == 0)) { Main.Ninja0.gotoAndStop("run_left"); } if (Ninjat[0][0]) { Main.Ninja0.gotoAndStop("jump_left"); } else { Main.Ninja0.gotoAndStop("run_left"); } Ninjat[0][3] = "left"; Ninjat[0][8] = -20; } else { Ninjat[0][8] = 0; } if ((Key.isDown(32) && (!Key.isDown(39))) && (!Key.isDown(37))) { if ((!Ninjat[0][4]) && (releaseSpace)) { Ninjat[0][4] = true; Ninjat[0][7] = 5; if (Ninjat[0][0]) { Main.Ninja0.gotoAndStop("jumpattack_" + Ninjat[0][3]); } else { Main.Ninja0.gotoAndStop("melee_" + Ninjat[0][3]); } Ninjat[8][0] = 0; aSwing.start(0, 1); releaseSpace = false; } } else if ((Key.isDown(32) && (Key.isDown(39))) || (Key.isDown(32) && (Key.isDown(37)))) { if ((!Ninjat[0][4]) && (releaseSpace)) { Ninjat[0][4] = true; Ninjat[0][7] = 5; if (Ninjat[0][3] == "right") { Ninjat[0][13] = 50; } else { Ninjat[0][13] = -50; } aSwing.start(0, 1); Main.Ninja0.gotoAndStop("runattack_" + Ninjat[0][3]); releaseSpace = false; } } else { releaseSpace = true; } if (Key.isDown(38)) { if (!Ninjat[0][0]) { Ninjat[0][0] = true; Ninjat[0][1] = 20; Main.Ninja0.gotoAndStop("jump_" + Ninjat[0][3]); aHaja.start(0.3, 1); } } } function ninjaAI(ninjaName, i) { if (Ninjat[i][9]) { if ((Ninjat[i][6] <= 0) && (!Ninjat[i][4])) { Ninjat[i][8] = 0; if (Main[ninjaName]._x > Main.Ninja0._x) { Ninjat[i][3] = "left"; } if (Main[ninjaName]._x < Main.Ninja0._x) { Ninjat[i][3] = "right"; } if ((Main[ninjaName]._x - 90) > Main.Ninja0._x) { if (Ninjat[i][0]) { Main[ninjaName].gotoAndStop("jump_left"); } else { Main[ninjaName].gotoAndStop("run_left"); } Ninjat[i][3] = "left"; Ninjat[i][8] = -20; } else if ((Main[ninjaName]._x + 90) < Main.Ninja0._x) { if (Ninjat[i][0]) { Main[ninjaName].gotoAndStop("jump_right"); } else { Main[ninjaName].gotoAndStop("run_right"); } Ninjat[i][3] = "right"; Ninjat[i][8] = 20; } else if (!Ninjat[i][4]) { Ninjat[i][4] = true; Ninjat[i][7] = 5; if (Ninjat[i][0]) { Main[ninjaName].gotoAndStop("jumpattack_" + Ninjat[i][3]); } else { Main[ninjaName].gotoAndStop("melee_" + Ninjat[i][3]); } aSwing.start(0, 1); } if (Main[ninjaName]._y > Main.Ninja0._y) { if (!Ninjat[i][0]) { Ninjat[i][0] = true; Ninjat[i][1] = 20; Main[ninjaName].gotoAndStop("jump_" + Ninjat[i][3]); } } Ninjat[i][6] = Math.round((Math.random() * 5) + 5); } else { Ninjat[i][6]--; } } } function osumaTarkistus(ninjaName, i) { n = 0; while (n <= Ninjat.length) { if ((i == 0) && (n != 0)) { if (Ninjat[n][9]) { if (Main[ninjaName].hitTest(Main["Ninja" + n])) { Ninjat[n][10] = Ninjat[n][10] - Ninjat[0][11]; if (Main.Ninja0._x > Main["Ninja" + n]._x) { Ninjat[n][13] = -50; } else { Ninjat[n][13] = 50; } aHit.start(0.1, 1); if (Ninjat[n][10] <= 0) { pisteet = pisteet + 100; Ninjat[n][9] = false; Ninjat[n][8] = 0; Main["Ninja" + n].gotoAndStop("death_" + Ninjat[n][3]); } else { Ninjat[n][12] = 5; Ninjat[n][8] = 0; Main["Ninja" + n].gotoAndStop("hurt_" + Ninjat[n][3]); aHit.start(0.1, 1); momentti = momentti + 10; } } } } n++; } if (i >= 1) { if (Main[ninjaName].hitTest(Main.Ninja0)) { Ninjat[0][10] = Ninjat[0][10] - Ninjat[i][11]; if (Main.Ninja0._x < Main[ninjaName]._x) { Ninjat[0][13] = -50; } else { Ninjat[0][13] = 50; } aHit.start(0.1, 1); if (Ninjat[0][10] <= 0) { Ninjat[0][9] = false; Ninjat[n][8] = 0; Main.Ninja0.gotoAndStop("death_" + Ninjat[0][3]); } else { Ninjat[0][12] = 5; Ninjat[0][8] = 0; Main.Ninja0.gotoAndStop("hurt_" + Ninjat[0][3]); } } } } function nuoli() { Main.Nuoli._x = Main.Ninja0._x; Main.Nuoli._y = Main.Ninja0._y - 20; } function gameOver() { if ((!Ninjat[0][9]) || (numberOfEnemies >= maxNumberOfEnemies)) { gotoAndStop (3); } } onEnterFrame = function () { if (Reset) { resetAll(); } gameOver(); if (waitingTime <= 0) { newWaitingTime = newWaitingTime - 1; waitingTime = newWaitingTime; if (numberOfEnemies < maxNumberOfEnemies) { createEnemy(); } numberOfEnemies++; } else { waitingTime--; } nuoli(); kake(); i = 1; while (i <= (Ninjat.length - 1)) { ninjaName = "Ninja" + i; ninjaAI(ninjaName, i); i++; } i = 0; while (i <= (Ninjat.length - 1)) { ninjaName = "Ninja" + i; physics(ninjaName, i); if (Ninjat[i][12] > 0) { Ninjat[i][12]--; } else { controls(ninjaName, i); } i++; } mittarit(); };
Frame 3
pisteMittari.text = pisteet;
Symbol 62 Button
on (release) { gotoAndStop (2); }
Symbol 71 Button
on (release) { gotoAndStop (1); }

Library Items

Symbol 1 Sound [swing]
Symbol 2 Sound [hit]
Symbol 3 Sound [haja]
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:45
Symbol 6 GraphicUsed by:14
Symbol 7 GraphicUsed by:14
Symbol 8 GraphicUsed by:14
Symbol 9 GraphicUsed by:14
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:6 7 8 9 10 11 12 13Used by:45
Symbol 15 GraphicUsed by:20
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:15 16 17 18 19Used by:45
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:45
Symbol 23 GraphicUsed by:28
Symbol 24 GraphicUsed by:28
Symbol 25 GraphicUsed by:28
Symbol 26 GraphicUsed by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:23 24 25 26 27Used by:45
Symbol 29 GraphicUsed by:34
Symbol 30 GraphicUsed by:34
Symbol 31 GraphicUsed by:34
Symbol 32 GraphicUsed by:34
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:29 30 31 32 33Used by:45
Symbol 35 GraphicUsed by:39
Symbol 36 GraphicUsed by:39
Symbol 37 GraphicUsed by:39
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:35 36 37 38Used by:45
Symbol 40 GraphicUsed by:44
Symbol 41 GraphicUsed by:44
Symbol 42 GraphicUsed by:44
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:40 41 42 43Used by:45
Symbol 45 MovieClip [ninja]Uses:5 14 20 22 28 34 39 44
Symbol 46 GraphicUsed by:49
Symbol 47 FontUsed by:48 68 69 70
Symbol 48 TextUses:47Used by:49
Symbol 49 MovieClip [nuoli]Uses:46 48
Symbol 50 GraphicUsed by:Timeline
Symbol 51 FontUsed by:52 53 54 55 64
Symbol 52 EditableTextUses:51Used by:Timeline
Symbol 53 EditableTextUses:51Used by:Timeline
Symbol 54 EditableTextUses:51Used by:Timeline
Symbol 55 EditableTextUses:51Used by:Timeline
Symbol 56 FontUsed by:57 58 59 60
Symbol 57 EditableTextUses:56Used by:Timeline
Symbol 58 EditableTextUses:56Used by:Timeline
Symbol 59 EditableTextUses:56Used by:Timeline
Symbol 60 EditableTextUses:56Used by:Timeline
Symbol 61 GraphicUsed by:62 67 71  Timeline
Symbol 62 ButtonUses:61Used by:Timeline
Symbol 63 MovieClipUsed by:Timeline
Symbol 64 EditableTextUses:51Used by:Timeline
Symbol 65 GraphicUsed by:Timeline
Symbol 66 GraphicUsed by:Timeline
Symbol 67 MovieClipUses:61Used by:Timeline
Symbol 68 TextUses:47Used by:Timeline
Symbol 69 TextUses:47Used by:Timeline
Symbol 70 EditableTextUses:47Used by:Timeline
Symbol 71 ButtonUses:61Used by:Timeline

Instance Names

"Main"Frame 2Symbol 63 MovieClip
"pisteMittari"Frame 2Symbol 64 EditableText
"happiPalikka"Frame 2Symbol 67 MovieClip
"pisteMittari"Frame 3Symbol 70 EditableText
"melee"Symbol 45 MovieClip [ninja] Frame 5Symbol 20 MovieClip
"melee"Symbol 45 MovieClip [ninja] Frame 7Symbol 22 MovieClip
"melee"Symbol 45 MovieClip [ninja] Frame 9Symbol 28 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "swing"
ExportAssets (56)Timeline Frame 1Symbol 2 as "hit"
ExportAssets (56)Timeline Frame 1Symbol 3 as "haja"
ExportAssets (56)Timeline Frame 1Symbol 45 as "ninja"
ExportAssets (56)Timeline Frame 1Symbol 49 as "nuoli"

Labels

"idle_right"Symbol 45 MovieClip [ninja] Frame 1
"idle_left"Symbol 45 MovieClip [ninja] Frame 2
"run_right"Symbol 45 MovieClip [ninja] Frame 3
"run_left"Symbol 45 MovieClip [ninja] Frame 4
"melee_right"Symbol 45 MovieClip [ninja] Frame 5
"melee_left"Symbol 45 MovieClip [ninja] Frame 6
"jump_right"Symbol 45 MovieClip [ninja] Frame 7
"jump_left"Symbol 45 MovieClip [ninja] Frame 8
"death_right"Symbol 45 MovieClip [ninja] Frame 9
"death_left"Symbol 45 MovieClip [ninja] Frame 10
"hurt_right"Symbol 45 MovieClip [ninja] Frame 11
"hurt_left"Symbol 45 MovieClip [ninja] Frame 12
"jumpattack_left"Symbol 45 MovieClip [ninja] Frame 13
"jumpattack_right"Symbol 45 MovieClip [ninja] Frame 14
"runattack_right"Symbol 45 MovieClip [ninja] Frame 15
"runattack_left"Symbol 45 MovieClip [ninja] Frame 16




http://swfchan.com/17/82246/info.shtml
Created: 1/4 -2019 12:34:13 Last modified: 1/4 -2019 12:34:13 Server time: 14/11 -2024 06:32:24