马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
再说第三点:我并没有提到服务器也要整合,然后是IDE,一个好的IDE能够200%提高开发的速度,就说图形方面:你是经过简单托拽和点击就能实现功能好那。<HTML>
<HEAD>
<TITLE>JSFALCON</TITLE>
<SCRIPTLANGUAGE="JavaScript">
<!--
varFlimit=9//forTESTPLAY(FireLimit0to9)
varBossTM=0//(Bosstestmode=1)
varBossLM=700//(Bossappearance)
varEasy=0
vartimerID=null
varTimeCounter=0
varINT=25//interval
vark=0//keybuffer
varX=100//mychrXY
varY=100
varDX=0//mychrmove
varDY=0
varIX=0
varIY=0
varSDX=0
varSDY=0
varSIX=0
varSIY=0
varEndflg=0//GameEndFlag
varff=0//fireflag
varfc=0//firecounter
varFX=newArray(12)//fireXY
varFY=newArray(12)
varbf=0//bombflag
varbc=0//bombcounter
varBX=0//bombXY
varBY=-100
varBDX=0//bombfallspeed
varBDY=0
varCname=newArray(2)//clashimageNo
varBflag=0//bombFLAG
varGND=0//scrollflag
varEFX=newArray(8)//enemyfireXY
varEFY=newArray(8)
varEVX=newArray(8)//enemyfirespeed
varEVY=newArray(8)
varFmax=3//enemyfiremax
varEMX=200//enemymissileXY
varEMY=284
varPTN=0//enemymissilepaturn
varMvx=0//enemymissilespeed
varMvy=0
varmCount=100//missiletimer
varEX=newArray(20)//enemyXY
varEY=newArray(20)
varCH=newArray(2)//cobraYspeed
varCW=newArray(2)//cobraXspeed
vartmp1=0
vartmp2=0
varEndflg=1
varBossflg=0
varBossX=0//BossX
varBossH=0//BossCanonH(170to220)
varCanonX=-200//CanonX,Y,counter
varCanonY=-200
varCanonC=0
varBossflg=0
vartmpBF=0
varsf=0//Startflag
varspCOUNT=0
//IEcheck
systm=""
ver=navigator.appVersion
len=ver.length
for(iln=0;iln<len;iln++)if(ver.charAt(iln)=="(")break
systm=ver.charAt(iln+1).toUpperCase()
//---------------------------------
//========Mainfunction==========
//---------------------------------
functioninterval1(){
clearTimeout(timerID)
//---------Clashimageclear-----------
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}
//---------Enemyfirelevelup-----------
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(tmpbgf==0){
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()}
}
//---------GNDmove----------
GND=GND-1;if(GND<=-16){GND=0}
GNDs.left=GND
//----------Mig23moveenemyNo=0,1,2LayerNo=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(floor(random()*5)==3){Efire(EX[tmp1],EY[tmp1])}}
}
}
//----------cobramoveenemyNo=3,4,5LayerNo=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){if(floor(random()*5)==3){Efire(EX[tmp1],EY[tmp1])}}
}
}
}
//----------shilkamoveenemyNo=6,7,8LayerNo=33,34,35----------
if(TimeCounter>=200){
with(Math){tmpTM=TimeCounter-floor(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){if(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])}}
}
}
//----------geckomoveenemyNo=9LayerNo=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])
//----------bombmove-------------
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=BY-4
}
}
}
}
}
if(BY>=284){tmpBMX=BX-8;tmpBMY=244}
if(tmpBMX!=-100){
spMOV(45+Bflag,-100,-100)
spMOV(50,tmpBMX,tmpBMY)
Bflag=0;ccount2=0;bc=0;BY=-100;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)
}
//----------Myfiremove-------------
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])
}
//----------EnemyFire/MissileMove---------
Efmove()
Emiss()
//----------mychrmove-----------
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){
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)
//scoreshow
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
//--------timerset----------
if(Endflg!=1){timerID=setTimeout("interval1()",INT)
}else{
if(systm!="C"){
}else{
}
if(hscore<=score){
document.cookie="JSFALCON="+score+";expires=Fri.31-Dec-199923:59:59GMT"
hscore=score
loadSCORE()
}
}
}
//---------------------------
//======SubFunctions======
//---------------------------
//-----------OnLoad----------
functiononLD(){
if(systm!="C"){
W1c=document.layers["W1"]
mycr=W1c.layers["Mychr"]
cla0=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.W1.style
mycr=document.all.W1.document.all.Mychr.style
cla0=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.all.doc2.style
EAS=document.all.W1.document.all.EASY.style
BOS0=document.all.W1.document.all.boss0.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()
}
//----------EasyMode---------
functionEASY(){
Easy=1
EAS.visibility="visible"
}
//----------NormalMode---------
functionNORMAL(){
Easy=0
EAS.visibility="hidden"
}
//----------BossMode---------
functionBossMode(){
if(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
}
if(BossX==0){Bossflg=2}
}
if(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
if(Bossflg==3){
BossH=BossH-5
if(BossH==170){Bossflg=4;CanonC=0}
}
if(Bossflg==4){
if(CanonC==0){CanonX=BossX+55;CanonY=195;CanonC=1}else{
CanonC=CanonC+1;if(CanonC==10){Bossflg=5}
}
}
if(Bossflg==5){
BossH=BossH+5
if(BossH==220){Bossflg=1}
}
if(Bossflg==6){
BossH=BossH-5
if(BossH==170){Bossflg=7;CanonC=0}
}
if(Bossflg==7){
if(CanonC==0){CanonX=BossX+55;CanonY=195;CanonC=1}else{
CanonC=CanonC+1;if(CanonC==10){Bossflg=8}
}
}
if(Bossflg==8){
BossH=BossH+5
if(BossH==220){Bossflg=2}
}
if(BossH==220){tmpBHx=-200}else{tmpBHx=BossX+30}
CanonX=CanonX-25;CanonY=CanonY-25
spMOV(15,tmpBHx,BossH)
spMOV(14,CanonX,CanonY)
Fmax=Flimit;Efmove()
//Bosscheck1
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="visible"
spMOV(Cname[cflag],X,Y)
Endflg=1;cflag=cflag+1;if(cflag>=2){cflag=0}
}
}
}
}
//bosscheck2
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
//Canoncheck1
if(X>=CanonX-16){
if(X<=CanonX+16){
if(Y>=CanonY-16){
if(Y<=CanonY+16){
Cchkflg=1
}
}
}
}
//Canoncheck2
if(X>=CanonX){
if(X<=CanonX+34){
if(Y>=CanonY){
if(Y<=CanonY+34){
Cchkflg=1
}
}
}
}
if(Cchkflg==1){
mycr.visibility="hidden"
DOC2c.visibility="hidden"
DOCc.visibility="visible"
spMOV(Cname[cflag],X,Y)
Endflg=1;cflag=cflag+1;if(cflag>=2){cflag=0}
}
//Myfireclear
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])
}
}
}
}
}
//Bombcheck
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
}
}
}
if(BY>=284){tmpBMX=BX-8;tmpBMY=244}
if(tmpBMX!=-100){
spMOV(45+Bflag,-100,-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
}
}
}
}
}
}
}
//----------Quit-------------
functionQuitPlay(){
focus()
Endflg=1
DOC2c.visibility="hidden"
DOCc.visibility="visible"
clearTimeout(timerID)
}
//-----------Restart---------
functionRestart(){
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
IY=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
for(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])
}
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)
}
//---------EnemyMissileLayerNo37to44-----------
functionEmiss(){
mCount=mCount+1
if(mCount==50){
spLEFT(37+PTN,-100)
spMOV(Cname[cflag],EMX-4,EMY-4)
if(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}
}
}
}
}
}
if(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{
if(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
}
}
}
}
}
if(mCount<=5){PTN=1;Mvx=Mvx-0.5;Mvy=Mvy+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="visible"
spMOV(Cname[cflag],X,Y)
cflag=cflag+1;if(cflag>=2){cflag=0}
Endflg=1;EFX[tmp1]=-100
}
}
}
}
}
}
//---------EnemyfiremoveLayerNo=17to25-------------
functionEfmove(){
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(EFY[tmp1]<-16){EFX[tmp1]=-100;EVX[tmp1]=0;EVY[tmp1]=0}
if(EFY[tmp1]>300){EFX[tmp1]=-100;EVX[tmp1]=0;EVY[tmp1]=0}
}
if(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="visible"
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])
}
}
//---------EnemyFireLayerNo=17to25-----------
functionEfire(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)
}
}
}
}
//------HIGHSCOREshow------
functionloadSCORE(){
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
}
//------KeyDown------
functionkeyDown(DnEvents){
if(systm!="C"){
k=DnEvents.which
}else{
k=window.event.keyCode
}
if(k==50){IY=1}//2
if(k==56){DY=1}//8
if(k==54){IX=1}//6
if(k==52){DX=1}//4
if(k==98){IY=1}//2
if(k==104){DY=1}//8
if(k==102){IX=1}//6
if(k==100){DX=1}//4
if(k==75){IY=1}//K
if(k==73){DY=1}//I
if(k==76){IX=1}//L
if(k==74){DX=1}//J
if(k==107){IY=1}//k
if(k==105){DY=1}//i
if(k==108){IX=1}//l
if(k==106){DX=1}//j
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}//9
if(k==32){ff=1}//spc
if(k==90){ff=1}//Z
if(k==122){ff=1}//z
if(k==0){ff=1}//shiftCtrlCapsetc..
if(k==48){if(bc==0){bf=1}}//0
if(k==96){if(bc==0){bf=1}}//0
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){Restart()}}}//S
if(k==115){if(Endflg==1){if(sf==1){Restart()}}}//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
}
//-------KeyUp--------
functionkeyUp(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}
if(k==98){IY=0}//2
if(k==104){DY=0}//8
if(k==102){IX=0}//6
if(k==100){DX=0}//4
if(k==75){IY=0}//K
if(k==73){DY=0}//I
if(k==76){IX=0}//L
if(k==74){DX=0}//J
if(k==107){IY=0}//k
if(k==105){DY=0}//i
if(k==108){IX=0}//l
if(k==106){DX=0}//j
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}
}
//--------LAYERSETUP----------
functionspINI(spNAME,spX,spY,spW,spH,spIMG){
if(systm!="C"){
document.layers["W1"].document.write("<LAYERNAME="+spNAME+"LEFT="+spX+"TOP="+spY+"></LAYER>")
}else{
with(document){
write("
<DIVID="BG"></DIV>
<DIVSTYLE=position:absolute;left:16;top:0></DIV>
<DIVSTYLE=position:absolute;left:60;top:0></DIV>
<DIVID="L2I"STYLE=position:absolute;left:120;top:0>
</DIV>
<DIVID="L3I"STYLE=position:absolute;left:130;top:0>
</DIV>
<DIVID="L4I"STYLE=position:absolute;left:140;top:0>
</DIV>
<DIVID="L5I"STYLE=position:absolute;left:150;top:0>
</DIV>
<DIVID="L6I"STYLE=position:absolute;left:160;top:0>
</DIV>
<DIVSTYLE=position:absolute;left:290;top:0></DIV>
<DIVID="L7I"STYLE=position:absolute;left:350;top:0>
</DIV>
<DIVID="L8I"STYLE=position:absolute;left:360;top:0>
</DIV>
<DIVID="L9I"STYLE=position:absolute;left:370;top:0>
</DIV>
<DIVID="L10I"STYLE=position:absolute;left:380;top:0>
</DIV>
<DIVID="L11I"STYLE=position:absolute;left:390;top:0>
</DIV>
<DIVSTYLE=position:absolute;left:16;top:16>
</DIV>
<DIVID="TITL"STYLE=position:absolute;left:424;top:16>
<PRE>
<FONTCOLOR="#FFFF00"SIZE="+2"><B>JSFALCON</B></FONT>
<AHREF="javascript:history.back()">BACK</A>
</PRE>
</DIV>
<DIVID="KEYS"STYLE=position:absolute;left:16;top:320><PRE><FONTSIZE="-1">Move..2,4,6,8orK,J,L,I/Fire..SPACEorZ/Bomb..0orX</FONT></PRE></DIV>
<DIVID="W1"STYLE=position:absolute;left:16;top:16;clip:rect(0,400,300,0)>
<SCRIPTLANGUAGE="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")
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")
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")
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")
spINI("shi1",-100,0,32,24,"shilkac.gif")
spINI("shi2",-100,0,32,24,"shilkac.gif")
spINI("shi3",-100,0,32,24,"shilkac.gif")
spINI("sa81",-100,0,32,24,"sa8c.gif")
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")
spINI("bom0",-100,0,32,8,"bom0c.gif")
spINI("bom1",-100,0,32,8,"bom1c.gif")
spINI("miss",-100,0,16,16,"clashc.gif")
spINI("clash",-100,0,32,32,"clashc.gif")
spINI("clash1",-100,0,32,32,"clashc.gif")
spINI("clash2",-100,0,64,64,"clash2c.gif")
//-->
</SCRIPT>
<DIVID="GND"STYLE=position:absolute;left:0;top:284></DIV>
<DIVID="doc"STYLE=position:absolute;left:0;top:150;visibility:hidden>
<PRE>
Full<FONTCOLOR="#0000FF">KEYBOARD</FONT>operation
Start/Restart..<FONTCOLOR="#FF0000">Hit<B>S</B>key!</FONT>
<FONTSIZE="-1">(EasyMode..E/NormalMode..N)</FONT>
</PRE>
</DIV>
<DIVID="doc2"STYLE=position:absolute;left:0;top:150;visibility:hidden>
<PRE>
<FONTCOLOR="#0000FF"SIZE="+1"><B>MISSIONCOMPLETE</B></FONT>
Doyouplayagain?..<FONTCOLOR="#FF0000">Hit<B>S</B>key!</FONT>
<FONTSIZE="-1">(EasyMode..E/NormalMode..N)</FONT>
</PRE>
</DIV>
<DIVID="EASY"STYLE=position:absolute;left:2;top:2;visibility:hidden>
<FONTCOLOR="#FF0000"SIZE="-1">EASYMODE</FONT>
</DIV>
</DIV>
</BODY>
</HTML>
用winrar打包j2ee的程序和用IDE打包应用程序是一样的。按照你的想法,你是不是也希望服务器都整合由一家公司提供呢? |