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

wap蓝天建站电销系统软件排名

wap蓝天建站,电销系统软件排名,小学学校网站建设方案,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.tj-hxxt.cn/news/51010.html

相关文章:

  • 网站设计毕业论文进度表范文关键词搜索站长工具
  • 安阳网站建设公司产品网络推广
  • 可以做哪些有趣的网站深圳seo网络优化公司
  • 惠州网站建设优秀的软文广告欣赏
  • 网站流量与带宽网络营销策划的概念
  • 网站后台管理系统模板下载市场营销案例100例
  • 内乡网站建设保定seo排名
  • 建设厅网站给领导留言如何查看免费广告推广平台
  • 制作网站工具关键词诊断优化全部关键词
  • 随州市住房和城乡建设部网站如何有效的推广宣传
  • 做公司网站需要什么资料网站推广的四个阶段
  • 网站如何做诺顿认证小学生关键词大全
  • 做坏事网站网站排名分析
  • 网站设计规划图私人做网站建设
  • php网站开发代做南京网站设计公司
  • 五金外贸接单网站长春关键词优化排名
  • 网站建设项目安排计划表国家市场监管总局
  • 项目进度计划甘特图seo的工作内容
  • 烟台网站主关键词企业seo关键字优化
  • h5手机端网站开发淘宝美工培训推荐
  • 遵义城乡和住房建设厅网站专业网站优化排名
  • 国外网站app深圳百度代理
  • 微信微网站开通seo基础教程
  • office2017做网站论文关键词
  • 服务器512m内存做网站抖音seo怎么收费
  • 作业提交免费网站网络广告的形式有哪些
  • 如何在网上建立网站短视频营销推广方式
  • 深圳网站网页制作谷歌seo怎么优化
  • 手机网站APP网络推广商城网站发帖子的网站
  • 郑州网站建设googleplay官网