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

wap蓝天建站厦门seo优化推广

wap蓝天建站,厦门seo优化推广,百度推广费用预算表,洛阳 网站建设欢迎来到程序小院 机器人向前冲 玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续, 碰到匝道铁钉游戏结束,一直往前冲吧^^。开始游戏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.bjxfkj.com.cn/article/103859.html

相关文章:

  • 南京网站制作公司南京乐识专心b站推广
  • 网站建设地域名做引流的公司是正规的吗
  • 天天做网站关键词的优化方案
  • 网站被攻击 是vps问题还是dz程序南昌seo代理商
  • 企业注册号怎么查询企业网站排名优化方案
  • 网站开发项目合同怎么去营销自己的产品
  • app小游戏开发公司深圳网络seo推广
  • 北京社招网站百度免费推广登录入口
  • 三亚网上商城长沙正规竞价优化服务
  • 天津网站建设咨询百度推广助手官方下载
  • 北京网站建设方案策划网站权重
  • 网站设计为什么学不好广东深圳龙华区
  • 鞍山市城市建设网站怎么样推广自己的公司
  • 怎么做网站推广六安网络公司
  • 建筑网站夜里几点维护怎么进行网站关键词优化
  • 公司网站开发费用如何入账黄冈网站推广优化找哪家
  • 南宁做网站找哪家好永久免费的培训学校管理软件
  • 中投中原建设有限公司网站百度浏览器入口
  • 网站建设小程序网络广告销售
  • 什么软件做网站牛排seo
  • 网站做301排名会掉最新收录查询
  • 用织梦做的网站好用吗明年2024年有疫情吗
  • 用美国服务器做中国盗版网站企业软文代写
  • 宁夏网站建设费用地址利搜网站排名软件
  • 黄金交易平台app广州seo网站服务公司
  • 网站视频播放代码网店运营培训哪里好
  • 棋牌网站百度一下你就知道首页
  • 阿里巴巴上怎样做自己的网站优化大师win7官方免费下载
  • 精品课程网站开发项目广州推广排名
  • 向google提交网站在线域名ip查询