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

wap蓝天建站百度识图查图片

wap蓝天建站,百度识图查图片,南京企业官网建设,西湖网站建设欢迎来到程序小院 机器人向前冲 玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续, 碰到匝道铁钉游戏结束,一直往前冲吧^^。开始游戏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.tj-hxxt.cn/news/42423.html

相关文章:

  • 做搜索网站公关公司提供的服务有哪些
  • 静态展示网站模板营销传播
  • 重庆建站免费模板百度怎么注册公司网站
  • 武汉网站建设团队深圳网络推广工资
  • 做网站推广的技巧太原企业网站建设
  • 做水利网站需要多少钱聚合搜索引擎
  • wordpress中文个人博客主题关键词优化公司网站
  • 郫县哪里有做网站的百度 营销推广多少钱
  • 网站文章后台写完前台不显示app注册拉新平台
  • 上海跨境电商公司关键词优化价格
  • 北京网站建设哪家公司好注册一个公司网站需要多少钱
  • 服务器网站目录网络营销比较好的企业
  • 吉林省住房和城乡建设厅网站seo分析师招聘
  • 淘宝店可以做团购的网站吗百度投诉中心24人工 客服电话
  • wordpress头像修改重庆高端seo
  • 彩票网站建设 极云搜索引擎优化关键词选择的方法有哪些
  • 专业的网站建设公司排名广告推送平台
  • .net 网站开发权限设计会计培训班要多少钱
  • 网站该如何做长春seo快速排名
  • 在国外网站付款要怎么做全国新增确诊病例
  • 北京海淀区房价2022最新价格seo全称
  • 做视频网站需要多大空间网站建设运营
  • 网站 展示板石家庄seo代理商
  • 农村做网站开发运营商推广5g技术
  • 兰州疫情最新消息数据大金seo
  • google网站建设代理青海百度关键词seo
  • 网站源码生成html网页制作软件有哪些
  • android应用软件开发如何进行关键词优化工作
  • 广州网站建设服务seo网络推广经理招聘
  • 网络公司名字大全及寓意东莞网络优化公司