JavaScript Game

zhaozj2021-02-08  230

js falcon </ title></p> <p><Script language = "javascript"> <! - var flimit = 9 // for test play (fire limit 0 to 9) var bosstm = 0 // (boss test mode = 1) var bosslm = 700 // (Boss Appearance Var easy = 0</p> <p>Var timerid = nullvar timecounter = 0Var int = 25 // Intervalvar k = 0 // Key buffer x = 100 // my chr xyvar y = 100VAR DX = 0 // my chr movevar DY = 0VAR ix = 0VAR IY = 0VAR SDX = 0VAR SDY = 0VAR Six = 0Var Siy = 0Var endflg = 0 // Game end flagvar ff = 0 // Fire Flagvar FC = 0 // Fire Countervar fx = new array (12) // fire xyvar fy = new array (12) VAR BF = 0 // Bomb Flagvar BC = 0 // Bomb Countervar BX = 0 // Bomb Xyvar By = -100Var BDX = 0 // Bomb Fall Speedvar BDY = 0Var CName = New Array (2) // Clash Image Novar BFlag = 0 // Bomb Flagvar GND = 0 // Scroll Flagvar EFX = New Array (8) // Enemy Fire Xyvar Efy = N EW array (8) Var evx = new array (8) // Enemy Fire Speedvar Evy = New Array (8) VAR FMAX = 3 // Enemy Fire Maxvar EMX = 200 // Enemy Missile XYVAR EMY = 284Var PTN = 0 ///// Enemy Missile Paturnvar MVX = 0 // Enemy Missile Speedvar Mvy = 0Var McOUNT = 100 // Missile Timervar EX = New Array (20) // Enemy XYVAR EY = New Array (20) Var ch = New Array (2) // Cobra YSPEEDVAR CW =</p> <p>New array (2) // Cobra XSpeedVar TMP1 = 0VAR TMP2 = 0VAR ENDFLG = 1Var Bossflg = 0VAR bossx = 0 // boss xvar bossh = 0 // boss canon h (170 to 220) var canonx = -200 // canon X , Y, countervar = 0VAR bossflg = 0VAR TMPBF = 0Var sf = 0 // Start Flagvar spcount = 0 // i = navigator.appversion len = ver.length for (ILN = 0 ILN <LEN; ILN ) IF (Ver.Charat (ILN) == "(") BREAK SYSTM = Ver.Charat (ILN 1) .touppercase ()</p> <p>// ------------------------------- / / ======== main function === ======= // ---------------------------------</p> <p>Function interval1 () {Cleartimeout (TimerID)</p> <p>// --------- Clash image clear ----------- ccount0 = ccount0 1 if (ccount0> = 2) {CLA0.LEFT = -100} ccount1 = ccount1 1 IF (ccount1> = 2) {cla1.Left = -100} ccount2 = ccount2 1 if (ccount2> = 2) {cla2.Left = -100}</p> <p>// --------- Enemy Fire Level Up ---------- TimeCounter = TimeCounter 1 with (Math) {FMAX = Floor (Timecounter / 100) 3} IF (Fmax > = Flimit) {fmax = flimit} if (timecounter == blimit) {bossflg = 1; TMPBGC = 100; TMPBGF = 0} if (bossflg> = 1) {TMPBGC = TMPBGC-5 IF (TMPBGC> = 0) { IF (SYSTM! = "C") {}} = {IF (TMPBGC <= 0) {IF (SYSTM! = "C") {TMPBGF = 1} else {TMPBGF = 1}}}}}} TMPBF = 0 for (TMP1 = 0; TMP1 <10; TMP1 ) {IF (EX [TMP1]> = -50) {TMPBF = 1}} IF (TMPBF == 0) {bossmode ()}} // ------- Gnd Move ---------- GND = GND-1; IF (GND <= -16) {GND = 0} gnds.Left = GND</p> <p>// ---------- Mig23 Move Enemy NO = 0, 1, 2 Layer No = 27, 28, 29 --------- with (math) {for (TMP1 = 0) TMP1 <3; TMP1 ) {EX [TMP1] = EX [TMP1] -5 IF (EX [TMP1] <= -30) {IF (floor (random () * 12) == 3) {if (bossflg == 0) {EX [TMP1] = 400; EY [TMP1] = floor (random () * 12) * 20 20}}} spmov (27 TMP1, EX [TMP1], EY [TMP1]) with (MATH) {IF (random () * 5) == 3) {efire (ex [tmp1], EY [TMP1])}}}</p> <p>// ---------- Cobra Move Enemy No = 3, 4, 5 Layer No = 30, 31, 32 ---------- IF (TimeCounter> = 300) {with ( Math) {for (TMP1 = 3; TMP1 <6; TMP1 ) {EX [TMP1] = EX [TMP1] -CW [TMP1-3] IF (EY [TMP1] <= 5) {CH [TMP1-3] = 2; CW [TMP1-3] = 4} IF (EY [TMP1]> = 240) {CH [TMP1-3] = - 2; CW [TMP1-3] = 2} EY [TMP1] = EY [TMP1] CH [TMP1-3] IF (EX [TMP1] <= -30) {IF (FLOOR (Random () * 12) == 3) {if (bossflg == 0) {EX [TMP1] = 400; EY [TMP1] = floor (random () * 12) * 20 20}}} SPMOV (27 TMP1, EX [TMP1], EY [TMP1]) with (Math) {ix (floor (random () * 5) {EFIRE (EX [TMP1], EY [TMP1])}}}}} // --------- Shilka Move Enemy NO = 6, 7, 8 layer no = 33, 34 , 35 ---------- IF (Timecounter> = 200) {with (MATH) {TMPTM = TimeCounter-Flor (Timecounter / 100) * 100} IF (TMPTM <= 40) {TMPTMX = 3} ELSE {IF (TMPTM <= 70) {TMPTMX = 1} else {tmptmx = -1}}} for (TMP1 = 0; TMP1 <3; TMP1 ) {EX [TMP1 6] = EX [TMP1 6] -tmptmx IF (EX [TMP1 6] <= -30) {IF (EX [6] <= 365) {IF (EX [7] <= 365) {IF (EX [8] <= 365) {IF (bossflg == 0) {with (MATH) {i f (floor (random () * 40) == 3) {EX [tmp1 6] = 400}}}}}}} spMOV (33 tmp1, EX [tmp1 6], EY [tmp1 6]) With (Math) {IF (Floor (random () * 5) == 3) {efire (EX [TMP1 6], EY [TMP1 6])}}}}</p> <p>// ---------- Gecko Move Enemy No = 9 Layer No = 36 ------------ IF (EX [9] <= -600) {IF (bossflg = = 0) {EX [9] = 400}} EX [9] = EX [9] -1; IF (EX [9] <= 250) {EX [9] = EX [9] -4} if (EX) [9] == 365) {EMX = EX [9] 7; EMY = EY [9] -10; McOUNT = 0} IF (EX [9] == 310) {EMX = EX [9] 7; Emy = EY [9] -10; Mcount = 0} if (EX [9] == 255) {EMX = EX [9] 7; Emy = EY [9] -10; McOUNT = 0} spmov (36, EX [9], EY [9])</p> <p>// ---------- Bomb Move ------------- IF (bf == 1) {bx = x; BY = Y 30; BC = 1; BF = 0; bdx = 12} if (bc == 1) {bdy = bdy 2 if (bdy == 10) {spmov (45 bflag, -100, -100) bflag = 1} if (bdy> = 10 ) {Bdx = bdx 3; bx = bx bdx} by = by bdy; tmpbmx = -100; tmpbmy = -100 for (TMP2 = 0; TMP2 <10; TMP2 ) {IF (bx> = EX [TMP2 ] -30) {IF (BX <= EX [TMP2] 16) {if (by> = EY [TMP2] -3) {IF (by <= EY [TMP2] 16) {TMPBMX = BX-8; TmpBmy = BX-4}}}}}}}}}}}}}}}} {TMPBMX = BX-8; TmpBMY = 244} IF (TMPBMX! = -100) {SPMOV (45 BFLAG, -100, -100) spmov (50, tmpbmx, tmpbmy) bflag = 0; ccount2 = 0; BC = 0; BDX = 0; BDY = 0 for (TMP2 = 0; TMP2 <10; TMP2 ) {IF (bx> = EX [TMP2] -56) {IF (BX <= EX [TMP2] 40) {IF (EY [TMP2]> = TmpBMY-18) {IF (EY [TMP2] <= TmpBMY 63) {spmov (33 TMP2, -100, -100) Spmov (CNAME [CFLAG], EX [TMP2], EY [TMP2] -6) IF (cflag == 0) {ccount0 = 0} else {ccount1 = 0} cflag = CFLAG 1 ; if (cflag> = 2) {cflag = 0} EX [TMP2] = - 100; FX [TMP1] = 500; score = score 50}} }}}} SPMOV (45 BFLAG, BX, BY)}</p> <p>// ---------- My Fire Move ------------- IF (ff == 1) {fx [fc] = x; fy [fc] = y 12 fc = fc 1; if (fc> = 13) {fc = 0} ff = 0} for (TMP1 = 0; TMP1 <13; TMP1 ) {fx [TMP1] = fx [TMP1] 32 for (TMP2 = 0; TMP2 <10; TMP2 ) {IF (FX [TMP1]> = EX [TMP2] -8) {IF (FX [TMP1] <= EX [TMP2] 32) {IF (fy [TMP1]> = EY [TMP2] -8) {IF (fy [TMP1] <= EY [TMP2] 19) {SPMOV (27 TMP2, -100, -100) Spmov (CNAME [CFLAG], EX [TMP2], EY [ TMP2] -6) IF (cflag == 0) {ccount0 = 0} else {ccount1 = 0} cflag = cflag 1; if (cflag> = 2) {cflag = 0} EX [TMP2] = - 100; fx [TMP1] = 500; score = score 10}}}}}} spmov (TMP1 1, FX [TMP1], FY [TMP1])} // ---------- Enemy Fire / Missile Move --------- Efmove () EMISS ()</p> <p>// ---------- My Chr Move ----------- Tmpix = IX Six; if (Tmpix> = 1) {TMPIX = 5 Easy} Tmpiy = iY Siy; if (tmpiy> = 1) {tmpiy = 5 easy} TmpDX = DX SDX; if (tmpdx> = 1) {TMPDX = 5 Easy} Tmpdy = DY SDY; if (Tmpdy> = 1) { TMPDY = 5 Easy} x = x tmpix-tmpdx y = y tmpiy-tmpdy if (x> = 368) {x = 368} if (x <= 0) {x = 0} if (y <= 0 ) {Y = 0} if (y> = 258) {</p> <p>Mycr.visibility = "hidden" doc2c.visibility = "hidden" DOCC.Visibility = "visible" spmov (cname [cflag], x, y) endflg = 1; EFX [TMP1] = - 100; cflag = cflag 1; IF (cflag> = 2) {cflag = 0}} for (TMP2 = 0; TMP2 <10; TMP2 ) {if (x> = EX [TMP2] -20) {IF (x <= EX [TMP2] 20 ) {If (y> = EY [TMP2] -20) {if (y <= EY [TMP2] 10) {mycr.visibility = "hidden" DOC2C.Visibility = "hidden" docc.visibility = "visible" spmov (CNAME [CFLAG], X, Y) endflg = 1; EFX [TMP1] = - 100; cflag = cflag 1; if (cflag> = 2) {cflag = 0}}}}} spmov (0, x Y) // score show with (math) {S5 = floor (score / 10000) S4 = floor ((Score-S5 * 10000) / 1000) S3 = floor ((Score-S5 * 10000-S4 * 1000) / 100) S2 = floor ((Score-S5 * 10000-S4 * 1000-S3 * 100) / 10) S1 = SCORE-S5 * 10000-S4 * 1000-S3 * 100-S2 * 10} L7c.top = -16 * S5 L8c.top = -16 * S4 L9c.top = -16 * S3 l10c.top = -16 * S2 L11c.top = -16 * S1</p> <p>// -------- Timer set ---------- if (endflg! = 1) {Timerid = setTimeout ("Interval1 ()", int)} else {if (SYSTM! = "C") {} else {} if (hscore <= score) {document.cookie = "jsfalcon =" score "; expires = fri. 31-DEC-1999 23:59:59 gmt" hscore = score loadingscore }}}</p> <p>// --------------------------- // ====== Sub functions ====== // --- ---------------------------------------------------------------------------------------------------------------------------------------</p> <p>// ----------- on loading ---------- Function ONLD () {IF (SYSTM! = "C") {w1c = document.layers ["w1"] Mycr = w1c.layers ["mychr"] cla 0 = w1c.layers ["Clash"] CLA1 = W1C.Layers ["Clash1"] CLA2 = W1C.Layers ["Clash2"] GNDS = W1c.Layers ["gnd"] DOCC = W1c.Layers ["DOC"] DOC2C = W1c.Layers ["DOC2"] EAS = W1c.Layers ["easy"] BOS0 = W1c.Layers ["boss0"] bos1 = w1c.layers ["boss1"] Bosr = w1c.layers ["bossr"] L2C = document.Layers [2] L3C = Document.Layers [3] L4C = Document.Layers [4] l5c = document.Layers [5] l6c = document.Layers [6] L7c = Document.Layers [8] L8C = Document.Layers [9] L9C = Document.Layers [10] l10c = document.Layers [11] l11c = document.Layers [12]} else {w1c = document.all.l.w1 .Style mycr = document.all.w1.document.all.mychr.style cla 0 = document.all.w1.document.all.clash.style cla1 = document.all.w1.document.all.Clash1.style cla2 = document .all.w1.document.all.clash2.style gnds = document.all.w1.document.all.gnd.style DOCC = document.all.w1.document.all.doc.style DOC2C = Document.all.w1. Document.a Ll.doc2.style Eas = document.all.w1.document.all.easy.style bos0 = document.all.w1.document.all.boss 0.style bos1 = document.all.w1.document.all.boss1.style Bosr = document.all.w1.document.all.bossr.Style L2C = L2i.Style L3C = L3i.Style L4C = L4i.Style L5C = L5i.Style L6C = L6i.style L7C = L7i.Style L8c = L8i.Style L9C = L9i.Style L10c = l10i.style L11c = L11i.style w1c.clip = "RECT (118, 400, 418, 0)"} loadscore () sf = 1 quitplay ()}</p> <p>// ---------- Easy mode --------- function easy () {EASY = 1 EAS.Visibility = "visible"} // --------- - Normal Mode --------- function normal () {easy = 0 EAS.Visibility = "hidden"}</p> <p>// ---------- Boss mode --------- function bossmode () {ix (bossflg == 1) {bossx = bossx-10 if (bossx == 250) {bossflg = 3 if (flimit! = 0) {EMX = BOSSX 30; EMY = 218; McOUNT = 0} evX [0] = - 5; Evy [0] = - 5 EVX [1] = - 6; Evy [1 ] = - 4 EVX [2] = - 4; Evy [2] = - 6 EVX [3] = - 2; evy [3] = - 7 evX [8] = - 7; evy [8] = - 7 EFX [0] = BOSSX 101; EFY [0] = 225 EFX [1] = bossx 98; EFY [1] = 229 EFX [2] = bossx 104; EFY [2] = 222 EFX [3] = bossx 109; EFY [3] = 222 EFX [8] = BOSSX 7; EFY [8] = 232</p> <p>} F (bossx == 0) {bossflg = 2}} f (bossflg == 2) {bossx = bossx 10 if (bossx == 150) {bossflg = 6 evx [4] = - 5; evy [4] = -5 EVX [5] = - 6; Evy [5] = - 4 EVX [6] = - 4; Evy [6] = - 6 evX [7] = - 2; Evy [7] = - 7 EVX [ 8] = - 7; Evy [8] = - 7 EFX [4] = BOSSX 101; EFY [4] = 225 EFX [5] = bossx 98; EFY [5] = 229 EFX [6] = BOSSX 104; EFY [6] = 222 EFX [7] = BOSSX 109; EFY [7] = 222 EFX [8] = BOSSX 7; EFY [8] = 232} IF (bossx == 270) {bossflg = 1 }} Bos0.Left = bossx</p> <p>IF (bossflg == 3) {bossh = bossh-5 if (bossh == 170) {bossflg = 4; canonc = 0}} f (bossflg == 4) {if (canonc == 0) {canonx = bossx 55; canony = 195; canonc = 1} else {canonc = canonc 1; if (canonc == 10) {bossflg = 5}}}}}}}}}}}}}}}}}}} (bossflg == 5) {BOSSH = BOSSH 5 IF (bossh == 220) {bossflg = 1}} = f (bossflg == 6) {bossh = bossh-5 if (bossh == 170) {bossflg = 7; canonc = 0}} f (bossflg == 7) {IF (canonc = = 0) {canonx = bossx 55; canony = 195; canony = 1} else {canonc = canonc 1; if (canonc == 10) {bossflg = 8}}}}}}} (bossflg == 8) {bossh = BOSSH 5 IF (BOSSH == 220) {bossflg = 2}} f (bossh == 220) {TMPBHX = -200} else {TMPBHX = BOSSX 30} canonx = canonx-25; Canony = Canony-25 spmov 15, TMPBHX, BOSSH) spmov (14, canonx, canony) FMAX = flimit; EFMOT; EFMOVE () // boss check1 for (TMP2 = 0; TMP2 <10; TMP2 ) {IF (x> = bossx-20) {IF X <= bossx 124) {if (y> = 188) {mycr.visibility = "hidden" DOC2C.Visibility = "hidden" DOCC.Visibility = "visails" spmov (CName "spmov (CNAME" spmov (CNAME "spmov (CNAME" DOCC.VISIBILITY = "visame" [cflag], y) endflg = 1; cflag = cflag 1; if (cflag> = 2) {cflag = 0}}}}</p> <p>// boss check2 for (TMP2 = 0; TMP2 <10; TMP2 ) {if (x> = bossx 20) {if (x <= bossx 105) {if (y> = bossh-16) {Mycr.visibility = "hidden" DOC2C.Visibility = "hidden" DOCC.Visibility = "visible" spmov (cname [cflag], x, y) endflg = 1; cflag = cflag 1; if (cflag> = 2) {cflag = 0 }}}}} Cchkflg = 0 // canon check1 if (x> = canonx-16) {if (x <= canonx 16) {if (y> = canony-16) {if (y <= canony 16 ) {Cchkflg = 1}}}}</p> <p>// canon check2 if (x> = canonx) {if (x <= canonx 34) {if (y> = canony) {if (y <= canony 34) {cchkflg = 1}}}}}}}</p> <p>IF (cchkflg == 1) {mycr.visibility = "hidden" DOC2C.Visibility = "hidden" DOCC.Visibility = "visails" spmov (cname [cflag], x, y) endflg = 1; cflag = cflag 1; IF (cflag> = 2) {cflag = 0}}</p> <p>// My Fire Clear SPMOV (47, -100, -100) for (TMP1 = 0; TMP1 <13; TMP1 ) {IF (FX [TMP1]> = BOSSX-8) {IF (FX [TMP1] <= bossx 128) {IF (Fy [TMP1]> = 216) {FX [TMP1] = 500 SPMOV (47, Bossx, Fy [TMP1])}}}} for (TMP1 = 0; TMP1 <13; TMP1 ) {IF (FX [TMP1]> = BOSSX 38) {IF (FX [TMP1] <= BOSSX 70) {IF (Fy [TMP1]> = BOSSH-4) {IF (Fy [Tmp1] <216) {FX [ TMP1] = 500 spmov (47, Bossx 38, Fy [TMP1])}}}}}}}}</p> <p>// Bomb CHECK TMPBMX = -100 IF (bx> = bossx-30) {IF (bx <= bossx 144) {if (by> = 216) {TMPBMX = BX-8; TmpBMY = BY-4}}}}} IF (bx> = bossx 2) {if (bx <= bossx 94) {if (by> = bossh-4) {tmpbmx = bx-8; tmpbmy = by-4}}}}}}}}}}}}} = = 284 ) {TMPBMX = BX-8; tmpbmy = 244} {SPMOV (45 BFLAG, -100) {SPMOV (50, TmpBmx, TmpBMY) bflag = 0; ccount2 = 0; BC = 0; BY = -100; bdx = 0; bdy = 0 if (bossh! = 220) {if (TmpBmx> = BOSSX 25) {IF (TmpBMX <= BOSSX 108) {IF (TmpBMY <= BOSSH 22) {IF (TmpBMY <= 219) {doc2c.visibility = "visible" bos1.Left = -200 spmov (16, tmpbhx, bossh) endflg = 1; score = score flimit * 1000}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}</p> <p>}</p> <p>// ---------- Quit ------------- function Quitplay () {FOCUS () endflg = 1 doc2c.visibility = "hidden" DOCC.VISIBILITY = "Visible Cleartimeout (Timerid)}</p> <p>// ----------- Restart --------- function restart () {docc.visibility = "hidden" DOC2C.Visibility = "hidden" for (TMP1 = 0; TMP1 < 50; TMP1 ) {SPLEFT (TMP1, -200)} for (TMP1 = 0; TMP1 <10; TMP1 ) {EX [TMP1] = 0; EY [TMP1] = 0} IF (SYSTM! = "C") { } else {} TimeCounter = 0 score = 0 cname [0] = 48 cname [1] = 49 cname [2] = 50 cflag = 0 bossflg = bosstm bossx = 400 bossh = 220 blimit = bosslm canonx = -200 canony = - 200 canonc = 0 x = 100 y = 100 dx = 0 DY = 0 ix = 0 = 0 sdx = 0 SDY = 0 Six = 0 Siy = 0 endflg = 0 ff = 0 fc = 0 ccount0 = 0 ccount1 = 0 ccount2 = 0 for (TMP1 = 0; TMP1 <13; TMP1 ) {fx [TMP1] = 0; FY [TMP1] = - 100} bf = 0 bc = 0 bx = 0 by = -100 bdx = 0 bdy = 0 bflag = 0 gnd = 0 mvx = 0 mvy = 0 mcount = 100 fmax = 3 for (TMP1 = 0; TMP1 <9; TMP1 ) {EFX [TMP1] = - 100; EFY [TMP1] = - 100 spmov (TMP1 18 , EFX [TMP1], EFY [TMP1])} TMPE0 = 0 for (TMP1 = 0; TMP1 <3; TMP1 ) {with (Math) {EX [TMP1] = 460 FLOOR (Random () * 200)} with (MATH) {EY [TMP1] = FLOOR (Random () * 12) * 20 20}} EX [3] = 400; EX [4] = 440; EX [5] = 520 EY [3] = 100; EY [4] = 60; EY [5] = 200 CH [0] = 2; CH [1] = - 2; CH [2] = - 2 CW [0] = 4; CW [1] = 2; CW [2] = 2 f OR (TMP1 = 0; TMP1 <3; TMP1 ) {SPMOV (TMP1 30, EX [TMP1], EY [TMP1])} EX [6] = 400; EX [7] = 496; EX [8] = 530 ; EX [9] = 500 for (TMP1 = 0; TMP1 <4; TMP1 ) {EY [6 TMP1] = 260 SPMOV (TMP1 33, EX [TMP1], EY [TMP1])}</p> <p>Spmov (45, -100, -100) spmov (46, -100, -100) mycr.visibility = "Visible" if (bosstm! = 0) {for (TMP1 = 0; TMP1 <10; TMP1 ) {EX [ TMP1] = - 100; blimit = 5}} Timerid = setTimeout ("Interval1 ()", int)}</p> <p>// --------- Enemy Missile Layer No 37 to 44 ----------- function emiss () {mcount = mcount 1 if (mcount == 50) {SPLEFT (37 PTN, -100) Spmov (CNAME [CFLAG], EMX-4, EMY-4) ife (cflag == 0) {ccount0 = 0} else {ccount1 = 0} cflag = cflag 1; if (cflag> = 2) {cflag = 0} if (x> = EMX-28) {if (x <= EMX 24) {if (y> = EMY-28) {if (y <= emy 24) {Mycr.visibility = "Hidden" DOC2C.Visibility = "hidden" DOCC.Visibility = "visible" spmov (cname [cflag], x, y) endflg = 1; EFX [TMP1] = - 100; cflag = cflag 1; if (cflag > = 2) {cflag = 0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} f (mcount <50) {TMPEMX = X-EMX; TMPEMY = EMY-Y TMPPTN = PTN IF (TMPEMX == 0) {TMPEMX = 1} IF (TMPEMY == 0) {TMPEMY = 1} TMPTX = TMPEMY / TMPEMX IF (TMPEMX> 0) {IF (TMPTX> 2.4142) {PTN = 2; MVX = MVX / 1.4; mvy = mvy 0.7} else {ified (TMPTX> 0.4142) {PTN = 3; MVX = MVX 0.5; mvy = mvy 0.5} else {if (tmptx> -0.4142) {PTN = 4; mvx = mvx 0.7; mvy = mvy / 1.4} else {IF (TMPTX > -2.4142) {PTN = 5; MVX = MVX 0.5; MVY = MVY-0.5} else {PTN = 6; MVX = MVX / 1.4; mvy = mvy-0.7}}}}}}}} Else {IF (-tmptx> 2.4142) {PTN = 2; MVX = MVX / 1.4; MVY = MVY 0.7} else {if (-tmptx> 0.4142) {PTN = 1; MVX = MVX-0.5; mvy = mvy 0.5} else {if (-tmptx> -0.4142) {PTN = 0; mvx = mvx-0.7; mvy = mvy / 1.4} else {if (-tmptx> -2.4142) {PTN = 7; MVX = MVX-0.5; Mvy = mvy-0.5} else {PTN = 6; MVX = MVX / 1.4; MVY = MVY-0.7}}}}}}}}}}}}}}}}}}}}}}} {PTN = 1; MVX = MVX-0.5; MVY = MVY </p> <p>0.5} if (mvx> = 5) {mvx = 5} if (mvy> = 5) {mvy = 5} IF (MVX <= - 5) {mvx = -5} if (mvy <= - 5) {mvy = -5} EMX = EMX MVX-1; Emy = Emy-Mvy SPLEFT (37 TmpPTN, -100) SPMOV (37 PTN, EMX, EMY) IF (x> = EMX-24) {IF (x < = EMX 20) {if (y> = EMY-24) {if (y <= EMY 20) {SPLEFT (37 PTN, -100) Spmov (CNAME [CFLAG], EMX-4, EMY-4) Cflag = cflag 1; if (cflag> = 2) {cflag = 0} mycr.visibility = "hidden" doc2c.visibility = "hidden" DOCC.Visibility = "visails" spmov (cname [cflag], x, y) CFLAG = CFLAG 1; if (cflag> = 2) {cflag = 0} endflg = 1; EFX [TMP1] = - 100}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}</p> <p>// --------- Enemy Fire Move Layer No = 17 To 25 ------------- Function Efmove () {for (TMP1 = 0; TMP1 <FMAX; TMP1 ) {IF (EFX [TMP1]! = -100) {EFX [TMP1] = EFX [TMP1] EVX [TMP1]; EFY [TMP1] = EFY [TMP1] Evy [TMP1] IF (EFX [TMP1] <- 16) {EFX [TMP1] = - 100; EVX [TMP1] = 0; Evy [TMP1] = 0} IF (EFX [TMP1]> 400) {EFX [TMP1] = - 100; EVX [TMP1] = 0; Evy [TMP1] = 0} IF (EFX [TMP1] = - 100; EVX [TMP1] = 0; Evy [TMP1] = 0} IF (EFY [TMP1]> 300) { EFX [TMP1] = - 100; EVX [TMP1] = 0; EVY [TMP1] = 0}}}}}} (EFX [TMP1]> = x-4) {IF (EFX [TMP1] <= x 26) {IF (EFY [TMP1]> = Y 8) {IF (EFY [TMP1] <= Y 24) {mycr.visibility = "hidden" DOC2C.Visibility = "hidden" DOCC.Visibility = "visails" spmov (cname Cflag], x, y) endflg = 1; EFX [TMP1] = - 100; cflag = cflag 1; if (cflag> = 2) {cflag = 0}}}}}}}}}}} spmov (TMP1 18, EFX [TMP1 ], EFY [TMP1])}} // --------- Enemy Fire Layer NO = 17 To 25 ----------- Function Efire (EPX, EPY) {IF (Bossflg == 0) {TMPE0 = TMPE0 1; IF (TMPE0> = 9) {TMPE0 = 0} IF (EFX [TMPE0] == -100) {EFX [TMPE0] = EPX; EFY [TMPE0] = EPY TMPEX = X-EPX; TMPEY = Y-EPY with (MATH) {TMPER = SQRT (TMPEX * TMPEX TMPEY * TMPEY) IF (TMPER == 0) {TMPER = 1} EVX [TMPE0] = floor ((TMPEX / TMPER) * 7); evy [TMPE0] = floor ((TMPEY / TMPER) * 7)}}}}</p> <p>// ------ High Score Show ---- Fuction Loadscore () {if (Document.cookie) {Falcontop = Document.cookie.Indexof ("JSfalcon", 0) IF (Falcontop! = -1 ) {Tscore = document.cookie.substring (Falcontop 9, Falcontop 14)} else {tscore = "0"}} else {tscore = "0"} with (math) {HScore = PARSEINT (TSCORE, 10) H5 = floor (hscore / 10000) H4 = floor ((HSCORE-H5 * 10000) / 1000) H3 = floor ((HSCORE-H5 * 10000-H4 * 1000) / 100) H2 = floor ((HScore-H5 * 10000- H4 * 1000-h3 * 100) / 10) H1 = HSCORE-H5 * 10000-H4 * 1000-H3 * 100-H2 * 10} l2c.top = -16 * h5 l3c.top = -16 * h4 l4c.top = -16 * h3 l5c.top = -16 * h2 l6c.top = -16 * h1} // ------ Key Down ------ Function KeyDown (DNEvents) {if (SYSTM! = " C ") {k = dnevents.which} else {k = window.Event.keycode} if (k == 50) {= 1} // 2 IF (k == 56) {DY = 1} // 8 IF (k == 54) {ix = 1} // 6 IF (k == 52) {dx = 1} // 4</p> <p>IF (k == 98) {IY = 1} // 2 IF (k == 104) {DY = 1} // 8 IF (k == 102) {ix = 1} // 6 if (k == 100) {dx = 1} // 4</p> <p>IF (k == 75) {IY = 1} // k if (k == 73) {DY = 1} // i IF (k == 76) {ix = 1} // l if (k == 74) {dx = 1} // j</p> <p>IF (k == 107) {IY = 1} // k if (k == 105) {DY = 1} // i IF (k == 108) {ix = 1} // l if (k == 106) {dx = 1} // j</p> <p>IF (k == 49) {SDX = 1; Siy = 1} // 1 IF (k == 51) {Six = 1; Siy = 1} // 3 IF (k == 55) {SDX = 1; SDY = 1} // 7 IF (k == 57) {Six = 1; SDY = 1} // 9IF (k == 32) {ff = 1} // SPC IF (k == 90) {ff = 1} // z if (k == 122) {ff = 1} // z if (k == 0) {ff = 1} // Shift Ctrl Caps etc ..</p> <p>IF (k == 48) {if (bc == 0) {bf = 1}} // 0 IF (k == 96) {IF (bc == 0) {bf = 1}} // 0</p> <p>IF (k == 13) {if (bc == 0) {bf = 1}} // Enter if (k == 88) {IF (bc == 0) {bf = 1}} // x if ( K == 120) {IF (BC == 0) {bf = 1}} // x if (k == 83) {if (endflg == 1) {if (sf == 1) {rest ()} }} // s if (k == 115) {if (endflg == 1) {if (sf == 1) {rest ()}}} // s if (k == 69) {if (endflg = = 1) {flimit = 3; Easy ()}} // E IF (k == 101) {if (endflg == 1) {flimit = 3; Easy ()}} // e if (k == 78 ) {IF (endflg == 1) {flimit = 9; Normal ()}} // n if (k == 110) {if (endflg == 1) {flimit = 9; Normal ()}} // n IF (k == 81) {quitplay ()} // q IF (k == 113) {quitplay ()} // q</p> <p>}</p> <p>// ------- Key Up -------- Function Keyup (UPEVENTS) {IF (systm! = "C") {k = upevents.which} else {k = window.event.Keycode } IF (k == 50) {IY = 0} if (k == 56) {DY = 0} if (k == 54) {ix = 0} if (k == 52) {dx = 0}</p> <p>IF (k == 98) {IY = 0} // 2 IF (k == 104) {DY = 0} // 8 IF (k == 102) {ix = 0} // 6 if (k == 100) {DX = 0} // 4IF (k == 75) {IY = 0} // k if (k == 73) {DY = 0} // i IF (k == 76) {ix = 0 } // l if (k == 74) {dx = 0} // j</p> <p>IF (k == 107) {IY = 0} // k if (k == 105) {DY = 0} // i IF (k == 108) {ix = 0} // l if (k == 106) {dx = 0} // j</p> <p>IF (k == 49) {SDX = 0; Siy = 0} IF (k == 51) {Six = 0; Siy = 0} IF (k == 55) {SDX = 0; SDY = 0} IF K == 57) {Six = 0; SDY = 0}</p> <p>}</p> <p>// -------- Layer Setup ---------- Function Spini (SPNAME, SPX, SPY, SPW, SPH, SPIMG) {IF (SYSTM! = "C") {document. Layers ["w1"]. document.write ("<layer name = '" spname "' left =" SPX "TOP =" SPY "> <img width =" SPW "Height =" SPH "SRC = '" spimg "'> </ layer> ")} {WRITE (" <img id = " spname " width = " SPW " height = " SPH " src = '" Spimg "'Style =' Position: Absolute '>") Images [spcount 14] .style.posleft = SPX images [spcount 14] .style.postop = spy}} spcount = spcount 1}</p> <p>// ------- Layer Move ------------- Function SPMOV (SPNO, SPX, SPY) {IF (SYSTM! = "C") {w1c.layers [spno] .moveto (spx, spy)} else {document.images [SPNO 14] .style.posleft = spx document.Images [SPNO 14] .style.postop = spy}}} // ------- Layer Left ------------- Function SPLEFT (SPNO, SPX) {IF (SYSTM! = "C") {w1c.layers [spno] .left = spx} else {document.images [SPNO 14] .style.posleft = SPX}}</p> <p>// ------- Key Event INIT -------- Document.onkeyDown = keydown document.onkeyup = Keyup if (Systm! = "C") {document.captureevents (event.keydown | event. Keyup)}</p> <p>// -> </ script> </ head></p> <p><Body bgcolor = "# 00003f" text = "# ffffff" online = "onld ()> <div id =" bg "> </ div></p> <p><Div style = 'position: absolute; left: 16; top: 0'> <img width = 50 height = 16 src = "highc.gif"> </ div> <div style = 'Position: absolute; Left: 60 ; TOP: 0 '> <img width = 50 height = 16 src = "score.gif"> </ div> <div id = "l2i" style =' Position: absolute; left: 120; top: 0 '> < Img width = 16 height = 160 src = "number.gif"> </ div> <div id = "L3i" style = 'Position: absolute; left: 130; top: 0'> <img width = 16 height = 160 SRC = "Number.gif"> </ div> <div id = "L4i" style = 'position: absolute; left: 140; top: 0'> <img width = 16 height = 160 src = "number.gif" > </ Div> <div id = "l5i" style = 'Position: absolute; left: 150; top: 0'> <img width = 16 height = 160 src = "number.gif"> </ div> <div> ID = "L6i" style = 'POSITION: ABSOLUTE; Left: 160; Top: 0'> <img width = 16 height = 160 src = "number.gif"> </ div></p> <p><Div style = 'POSITION: ABSOLUTE; Left: 290; Top: 0'> <img width = 50 height = 16 src = "score.gif"> </ div> <div id = "l7i" style = 'Position: Absolute; Left: 350; TOP: 0 '> <img width = 16 height = 160 src = "number.gif"> </ div> <div id = "l8i" style =' Position: absolute; left: 360; TOP : 0 '> <img width = 16 height = 160 src = "number.gif"> </ div> <div id = "l9i" style =' Position: absolute; left: 370; top: 0 '> <img width = 16 height = 160 src = "number.gif"> </ div> <div id = "l10i" style = 'position: absolute; left: 380; top: 0'> <img width = 16 height = 160 src = "Number.gif"> </ div> <div ID = "l11i" style = 'position: absolute; left: 390; top: 0'> <img width = 16 height = 160 src = "number.gif"> <Number.gif / Div> <div sty = 'position: absolute; left: 16; Top: 16> <img width = 400 height = 300 src = "skybg.gif"> </ div> <div id = "titL" style = 'Position: Absolute; Left: 424; Top: 16'> <pre> <font color = "# fff00" size = " 2"> <b> js falcon </ b> </ font></p> <p><a href="javascript:History.Back()"> back </a> </ pre> </ div></p> <p><Div id = "keys" style = 'position: absolute; left: 16; top: 320'> <pre> <font size = "- 1"> Move..2, 4, 6, 8 or K, J, L, I / Fire..npace or z / bomb..0 or x </ font> </ pre> </ div></p> <p><Div id = "w1" style = 'POSITION: ABSOLUTE; Left: 16; Top: 16; Clip: Rect (0,400,300,0)'> <script language = "javascript"> <! - spini ("mychr", 100, 100, 32, 32, "F16C.GIF") Spini ("Myf01", - 100, 0, 32, 8, "Fire0c.gif") Spini ("Myf02", - 100, 0, 32, 8, "Fire0C .gif ") Spini (" Myf03 ", - 100, 0, 32, 8," Fire0c.gif ") Spini (" MYF04 ", - 100, 0, 32, 8," Fire0c.gif "SPINI (" MyF05 ", -100, 0, 32, 8," fire0c.gif ") spini (" myf06 ", - 100, 0, 32, 8," fire0c.gif ") spini (" myf07 ", - 100, 0, 32 , 8, "fire0c.gif") spini ("myf08", - 100, 0, 32, 8, "fire0c.gif") spini ("myf09", - 100, 0, 32, 8, "fire0c.gif" Spini ("MYF10", 100, 0, 32, 8, "Fire0c.gif") Spini ("Myf11", - 100, 0, 32, 8, "Fire0c.gif") Spini ("Myf12", - 100, 0, 32, 8, "fire0c.gif") Spini ("Myf13", 100, 0, 32, 8, "Fire0c.gif")</p> <p>Spini ("Boss2", - 180, 120, 50, 50, "Boss2c.gif") Spini ("Boss1", - 230, 170, 80, 50, "Boss1c.gif") Spini ("BOSSR", - 230, 170, 80, 50 "Boss1rc.gif") spini ("boss0", - 200, 220, 128, 64, "boss0c.gif")</p> <p>Spini ("ENF1", 100, 0, 8, 8, "Fire1c.gif") Spini ("ENF2", - 100, 0, 8, 8, "Fire1c.gif") Spini ("ENF3", - 100 0, 8, 8, "fire1c.gif") spini ("ENF4", - 100, 0, 8, 8, "fire1c.gif") spini ("enf5", - 100, 0, 8, 8, " Fire1c.gif ") Spini (" ENF6 ", - 100, 0, 8, 8," fire1c.gif ") Spini (" ENF7 ", 100, 0, 8, 8," fire1c.gif ") spini (" ENF8 ", 100, 0, 8, 8," fire1c.gif ") spini (" ENF9 ", - 100, 0, 8, 8," fire1c.gif ")</p> <p>Spini ("M231", - 100, 0, 32, 19, "M23C.GIF") Spini ("M232", 100, 0, 32, 19, "M23C.GIF") Spini ("M233", - 100 , 0, 32, 19, "M23c.gif") spini ("COB1", - 100, 0, 32, 19, "Cobrac.gif") Spini ("COB2", - 100, 0, 32, 19, " Cobrac.gif ") Spini (" COB3 ", 100, 0, 32, 19," Cobrac.gif ")</p> <p>Spini ("shi1", - 100, 0, 32, 24, "shilkac.gif") Spini ("shi2", - 100, 0, 32, 24, "shilkac.gif") Spini ("shi3", - 100 , 0, 32, 24, "shilkac.gif")</p> <p>Spini ("SA81", - 100, 0, 32, 24, "Sa8c.gif")</p> <p>Spini ("MSL0", - 100, 0, 24, 24, "MSL0C.GIF") Spini ("MSL1", 100, 0, 24, 24, "MSL1C.GIF") Spini ("MSL2", - 100 , 0, 24, 24, "MSL2C.GIF") Spini ("MSL3", - 100, 0, 24, 24, "MSL3C.GIF") Spini ("MSL4", - 100, 0, 24, 24, " MSL4C.GIF ") Spini (" MSL5 ", 100, 0, 24, 24," MSL5C.GIF ") Spini (" MSL6 ", - 100, 0, 24, 24," MSL6C.GIF "spini (" MSL7 ", - 100, 0, 24, 24," msl7c.gif ")</p> <p>Spini ("BOM0", 100, 0, 32, 8, "Bom0c.gif") Spini ("BOM1", - 100, 0, 32, 8, "BOM1C.GIF") Spini ("Miss", - 100 , 0, 16, 16, "Clashc.gif")</p> <p>Spini ("Clash", - 100, 0, 32, 32, "Clashc.gif") Spini ("Clash1", - 100, 0, 32, 32, "Clashc.gif") Spini ("Clash2", - 100 , 0, 64, 64, "Clash2c.gif")</p> <p>// -> </ script></p> <p><Div id = "gnd" style = 'POSITION: ABSOLUTE; Left: 0; Top: 284'> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = " Block.gif "> <img height = 16 width = 16 src =" block.gif "> <img height = 16 width = 16 src =" block.gif "> <img height = 16 width = 16 src =" block. GIF "> <img height = 16 width = 16 src =" block.gif "> <img height = 16 width = 16 src =" block.gif "> <img height = 16 width = 16 src =" block.gif " > <Img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> < IMG Height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 SRC = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 Width = 16 SRC = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <img height = 16 width = 16 SRC = "block.gif"> <img height = 16 width = 16 src = "block.gif"> <</p> <p>IMG height = 16 width = 16 src = "block.gif"> </ div> <div id = "doc" style = 'position: absolute; left: 0; Top: 150; Visibility: Hidden'> <pre> full <Font color = "# 0000f"> keyboard </ font> Operation start / restart .. <font color = "# ff0000"> Hit <b> s <font size = "- 1 "> (Easy mode ..e / normal mode ..n) </ font> </ pre> </ div></p> <p><Div id = "doc2" style = 'POSITION: ABSOLUTE; Left: 0; Top: 150; Visibility: Hidden'> <pre> <font color = "# 0000FF" size = " 1"> <b> mission completion </ B> </ font> do you play again? .. <font color = "# ff00"> Hit <b> s </ b> key! <Font> <font size = "- 1"> (Easy Mode ..e / normal mode ..n) </ font> </ pre> </ div> <div id = "easy" style = 'Position: absolute; left: 2; top: 2; visibility: hidden'> <Font color = "# ff0000" size = "- 1"> Easy Mode </ font> </ div> </ div></p> <p></ Body> </ html></p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-2527.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="2527" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.048</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'kWmvJ_2BF7M923c2hhzHsbMt48XY_2FCPfnrwVuHd4Oigc9vwgA96x7WVUEgBMuUoYxH01IsXfqsLZlWmgGg3QPXwA_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>