当前位置: 首页 > news >正文

wap蓝天建站企业推广方法

wap蓝天建站,企业推广方法,网络推广营销方式,public api wordpress欢迎来到程序小院 机器人向前冲 玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续, 碰到匝道铁钉游戏结束,一直往前冲吧^^。开始游戏https://www.ormcc.com/play/gameStart…

欢迎来到程序小院

机器人向前冲

玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续,
碰到匝道铁钉游戏结束,一直往前冲吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/206

html

  <canvas width="1280" height="768"></canvas>

css

canvas {display: block;touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 680px; height: 408px; cursor: inherit; margin-left: 0px; margin-top: 71px; margin-bottom: -71px;"
}

js

var game = new Phaser.Game(1280, 768, Phaser.AUTO, '');
game.state.add('Boot', BasicGame.Boot);
game.state.add('Preloader', BasicGame.Preloader);
game.state.add('MainMenu', BasicGame.MainMenu);
game.state.add('Game', BasicGame.Game);
// Now start the Boot state.
game.state.start('Boot');
BasicGame.Game.prototype = {
create: function () {this.map = this.game.add.tilemap('map');this.map.addTilesetImage('gem');this.map.addTilesetImage('platforms');this.map.setTileIndexCallback(61,this.hitCoin,this);this.map.setTileIndexCallback(24,this.dead,this);this.map.setTileIndexCallback(25,this.dead,this);this.layer = this.map.createLayer('Tile Layer 1');this.layer.resizeWorld();this.map.setCollisionBetween(1,10);this.map.setCollisionBetween(13,20);this.map.setCollisionBetween(23,37);this.map.setCollisionBetween(39,45);this.map.setCollisionBetween(49,60);this.sprite = this.game.add.sprite(75,600,'hero');this.sprite.animations.add('run',[0,1,2,3,4,5,6,7],16,true);this.game.physics.enable(this.sprite);this.sprite.body.bounce.set(0);this.sprite.body.tilePadding.set(64);this.game.camera.follow(this.sprite);this.sprite.body.gravity.y = 1200;this.game.input.onDown.add(this.jump,this);this.game.physics.startSystem(Phaser.Physics.ARCADE);this.game.physics.arcade.TILE_BIAS = 50;this.playing = true;
},jump: function() {if (this.sprite.body.blocked.down) {this.sprite.body.velocity.y = -720;this.sprite.animations.stop();this.sprite.frame = 2;}},
update: function () {this.game.physics.arcade.collide(this.sprite,this.layer);if (this.sprite.body.blocked.right) {this.sprite.body.velocity.x = 0;} else {this.sprite.body.velocity.x = 300;}if (this.sprite.body.blocked.down) {this.sprite.animations.play('run');}if (this.sprite.x > 7460) {console.log("win");this.playing=false;}if (this.sprite.y > 760) {this.dead();}this.quitGame(this.playing);
},
quitGame: function (pointer) {if(!this.playing) {delete this.map;delete this.layer;delete this.sprite;//takes us back to Main Menuthis.state.start('MainMenu');}
},hitCoin: function (sprite,tile) {if (tile.alpha != 0) {tile.alpha = 0;this.layer.dirty = true;return false;}},dead: function () {console.log("dead");this.playing=false;}
};

源码

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

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

http://www.dinnco.com/news/40983.html

相关文章:

  • 大型门户类网站app开发平台
  • 做手机网站版面做多宽sem是什么公司
  • wordpress 翻页函数北京百度搜索优化
  • 什么电脑做网站前段用口碑营销案例简短
  • 安徽大学最近消息优化大师会员兑换码
  • 操作简单网站搭建费用web网址
  • 云购网站开发比较好的免费网站
  • 东莞做网站 9353搜索引擎优化到底是优化什么
  • 旅游网站静态模版下载找一个免费域名的网站
  • wordpress在线主题导入手机端网站优化
  • 哪些网站做的好湖南seo优化按天付费
  • 海外购物网站上填手机号码怎么做正规seo大概多少钱
  • 中国建设银行网站 党费app拉新推广项目
  • 商城型外贸网站建设百度搜索推广开户
  • 金华公司做网站软件开发平台
  • 怎样免费自己做网站视频友链购买有效果吗
  • 南县中国建设银行网站免费seo搜索优化
  • 网络营销型网站建设的内容网络推广引流最快方法
  • 荆州哪个公司做网站交换友情链接的平台有哪些
  • 个人备案的网站可以做淘宝客吗今日新闻最新头条10条内容
  • 网络运维和网站开发哪个好网站seo外包靠谱吗
  • 小学网站建设工作小组推广普通话内容50字
  • 广州 四合一网站开发广告代运营
  • 域名申请 网站建设东莞网站制作外包
  • 长春网站网络公司品牌seo如何优化
  • 大连 做网站公司赣州seo推广
  • 网页优化与网站优优化营商环境的措施建议
  • 网站开发的路径是什么网络推广平台代理
  • 湖南平台网站建设企业小程序开发教程
  • 平面设计广告设计属于什么专业山西seo优化公司