王牌飞行员

2023-12-27 14:43:00

欢迎来到程序小院

王牌飞行员

玩法:控制鼠标进行飞行,多开障碍物,共10次生命,撞到障碍物生命减1,
飞行过程中会有????出现,记得吃掉????哦,赶紧去飞行吧^^。

开始游戏

html

<body?onload="setTimeout(function(){window.scrollTo(0,1)},1);">
?<div?id="ajaxbar">
??<div?id="game"><canvas?id="canvas"></canvas></div>
??<div?id="orientate"><img?src="media/graphics/orientate/landscape.jpg"?/></div>
??<div?id="play"?class="play"?onclick=""><img?src="media/graphics/splash/mobile/cover-start.jpg"?/></div>
??<img?id="scrollDown"?width="220"?height="277"></img>
?</div>
</body>

css

canvas{
  position:absolute;	
  left:0;	
  top:0;	
  width:100%;	
  height:100%;	 	
  -ms-interpolation-mode:nearest-neighbor;	 	
  -webkit-transform:scale3d(1,1,1);	
  z-index:1;
}

js

var?_STRINGS?=?{
??Ad:?{
??????Mobile:?{
??????????Preroll:?{
??????????????ReadyIn:?"The?game?is?ready?in?",
??????????????Loading:?"Your?game?is?loading...",
??????????????Close:?"Close"
??????????},
??????????Header:?{
??????????????ReadyIn:?"The?game?is?ready?in?",
??????????????Loading:?"Your?game?is?loading...",
??????????????Close:?"Close"
??????????},
??????????End:?{
??????????????ReadyIn:?"Advertisement?ends?in?",
??????????????Loading:?"Please?wait?...",
??????????????Close:?"Close"
??????????}
??????}
??},
??Splash:?{
??????Loading:?"Loading?...",
??????LogoLine1:?"Some?text?here",
??????LogoLine2:?"powered?by?MarketJS",
??????LogoLine3:?"none"
??},
??Game:?{
??????SelectPlayer:?"Select?Player",
??????Win:?"You?win!",
??????Lose:?"You?lose!",
??????Score:?"Score",
??????Time:?"Time",
??????pilotLevel:?["pilot?level",
??????????51,?195,?0.95,?0.98
??????],
??????score:?["score",?51,?256,?0.95,?0.98],
??????missions:?["missions",?51,?315,?0.95,?0.98],
??????completed:?["completed",?51,?346,?0.95,?0.98],
??????newLevel:?["new?pilot?level",?325,?224,?1.2,?1.3],
??????comment:?["great?flying!",?328,?50,?0.7,?0.8],
??????awesome:?["awesome!",?182,?97,?0.5,?0.6],
??????youfail:?["You?FAILED!",?184,?97,?0.5,?0.6],
??????logbook:?["pilot?logbook",?320,?54,?1.3,?1.5],
??????select:?["select?airplane",?320,?54,?0.8,?0.9],
??????selectMap:?["select?map",?320,?54,?0.8,?0.9],
??????notenough:?["need?more?stars",?320,?54,?0.8,?0.9],
??????selected:?["selected",?320,?334,?0.8,?0.9],
??????start:?["",
??????????320,?234,?0.4,?0.4
??????],
??????selectedMap:?["selected",?320,?347,?0.8,?0.9],
??????nextlevel:?["next?pilot?level?at",?320,?347,?0.8,?0.9],
??????maxLvl:?["You've?reached?the?max?level!",?320,?141,?1,?1.1],
??????nextlevelNumber:?["9999",?320,?135,?1.1,?1.3],
??????nextlevelMission:?["next?pilot?level?at?",?320,?141,?0.8,?0.9],
??????letsGo:?["Let's?go!",?290,?279,?0.7,?0.8],
??????gameOver:?["Aww~?You?ran?out?of?lives!",?120,?157,?0.9,?1],
??????accomplish:?["Mission?Accomplished!",?320,?157,?0.9,?1],
??????complete:?["Mission?Complete",?320,?399,?1,?1.1],
??????gameover:?["Game?Over",?320,?399,?1,?1.1],
??????fail:?["Mission?Failed",
??????????320,?399,?1,?1.1
??????],
??????pc1:?["Click?left?or?right?to?move?the?plane.",?51,?142,?0.6,?0.7],
??????pc2:?["You?can?also?use?the?arrow?keys.",?51,?180,?0.6,?0.7],
??????mobile1:?["Tap?left?or?right?to?move?the?plane",?101,?160,?0.6,?0.7],
??????ufo1:?["Avoid?the?UFOs!",?51,?143,?0.6,?0.7],
??????ufo2:?["Stay?alive?as?long?as?you?can!",?51,?177,?0.9,?1],
??????tree1:?["Avoid?the?trees,?go?green!",?158,?144,?0.7,?0.8],
??????tree2:?["Survive?for?60?seconds.",?158,?183,?0.7,?0.8],
??????ship1:?["The?hot?air?balloons?are?heading?left!",?48,?142,?0.7,?0.8],
??????ship2:?["Survive?for?60?seconds.",?48,?180,?0.7,
??????????0.8
??????],
??????balloon1:?["Avoid?slow?moving?hot?air?balloons!",?68,?144,?0.7,?0.8],
??????balloon2:?["Survive?for?60?seconds.",?68,?183,?0.7,?0.8],
??????ring1:?["The?rings?are?guiding?us?on?the?right?path,",?47,?142,?0.68,?0.78],
??????ring2:?["Fly?through?$?of?them!",?48,?180,?0.68,?0.78],
??????oil1:?["Our?pilot?headquarters?is?out?of?fuel,",?44,?146,?0.7,?0.8],
??????oil2:?["collect?$?drops?of?fuel?within?1?minute!",?44,?182,?0.7,?0.8],
??????star1:?["Look?at?those?shiny?stars,",?126,?145,?0.7,?0.8],
??????star2:?["Can?you?collect?$?of?them?",?126,?180,?0.7,?0.8],
??????pause:?["PAUSED",?320,?135,?2,
??????????2.1
??????]
??},
??Results:?{
??????Title:?"High?score"
??}
};
var?_SETTINGS?=?{
??API:?{
??????Enabled:?!0,
??????Log:?{
??????????Events:?{
??????????????InitializeGame:?!0,
??????????????EndGame:?!0,
??????????????Level:?{
??????????????????Begin:?!0,
??????????????????End:?!0,
??????????????????Win:?!0,
??????????????????Lose:?!0,
??????????????????Draw:?!0
??????????????}
??????????}
??????}
??},
??Ad:?{
??????Mobile:?{
??????????Preroll:?{
??????????????Enabled:?!1,
??????????????Duration:?5,
??????????????Width:?300,
??????????????Height:?250,
??????????????Rotation:?{
??????????????????Enabled:?!1,
??????????????????Weight:?{
??????????????????????MobileAdInGamePreroll:?40,
??????????????????????MobileAdInGamePreroll2:?40,
??????????????????????MobileAdInGamePreroll3:?20
??????????????????}
??????????????}
??????????},
??????????Header:?{
??????????????Enabled:?!1,
??????????????Duration:?5,
??????????????Width:?320,
??????????????Height:?50,
??????????????Rotation:?{
??????????????????Enabled:?!1,
??????????????????Weight:?{
??????????????????????MobileAdInGameHeader:?40,
??????????????????????MobileAdInGameHeader2:?40,
??????????????????????MobileAdInGameHeader3:?20
??????????????????}
??????????????}
??????????},
??????????Footer:?{
??????????????Enabled:?!1,
??????????????Duration:?5,
??????????????Width:?320,
??????????????Height:?50,
??????????????Rotation:?{
??????????????????Enabled:?!1,
??????????????????Weight:?{
??????????????????????MobileAdInGameFooter:?40,
??????????????????????MobileAdInGameFooter2:?40,
??????????????????????MobileAdInGameFooter3:?20
??????????????????}
??????????????}
??????????},
??????????End:?{
??????????????Enabled:?!1,
??????????????Duration:?1,
??????????????Width:?300,
??????????????Height:?250,
??????????????Rotation:?{
??????????????????Enabled:?!1,
??????????????????Weight:?{
??????????????????????MobileAdInGameEnd:?40,
??????????????????????MobileAdInGameEnd2:?40,
??????????????????????MobileAdInGameEnd3:?20
??????????????????}
??????????????}
??????????}
??????}
??},
??Language:?{
??????Default:?"en"
??},
??DeveloperBranding:?{
??????Splash:?{
??????????Enabled:?!0
??????},
??????Logo:?{
??????????Enabled:?!1,
??????????Link:?"http://marketjs.com",
??????????LinkEnabled:?!1,
??????????NewWindow:?!0,
??????????Width:?166,
??????????Height:?61
??????}
??},
??Branding:?{
??????Splash:?{
??????????Enabled:?!1
??????},
??????Logo:?{
??????????Enabled:?!1,
??????????Link:?"http://google.com",
??????????LinkEnabled:?!0,
??????????NewWindow:?!0,
??????????Width:?280,
??????????Height:?34
??????}
??},
??MoreGames:?{
??????Enabled:?!1,
??????Link:?"http://www.marketjs.com/game/links/mobile",
??????NewWindow:?!0
??},
??Gamecenter:?{
??????Enabled:?!0
??}
};

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

文章来源:https://blog.csdn.net/qq_16659821/article/details/135238004
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。