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

湛江网站建设方案书建网站需要多少钱和什么条件

湛江网站建设方案书,建网站需要多少钱和什么条件,政府网站建设方案书,管理培训班欢迎来到程序小院 机器人向前冲 玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续, 碰到匝道铁钉游戏结束,一直往前冲吧^^。开始游戏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.wangmingla.cn/news/156388.html

相关文章:

  • 具有品牌的广州做网站免费制作网页的网站
  • 品牌网站建设要多少钱竞价推广套户渠道商
  • 长沙网站建设开发如何做网址
  • 域名注册在那个网站好友情贴吧
  • wordpress api 中文win7优化大师好不好
  • 有做网站看病的吗百度首页排名优化公司
  • 电子商务网站建设与管理试卷国际重大新闻
  • 怎么建设一个淘宝客网站谁知道网络营销推广方法十种
  • 用JS做的购物网站搜索引擎营销的特点
  • 如何做网站免费搭桥链接济南seo外贸网站建设
  • 网站浏览记录怎么做网络营销的培训课程
  • 备案 修改网站名称公关策划公司
  • 网站做好第二年要多少钱下载百度app到桌面
  • 建立网站时要采用一定的链接结构seo智能优化
  • 中国建设委员会网站上需要一个网站
  • 知名网站建设公司电话世界球队实力排名
  • 做网站 做手机app要学什么软件自己开发网站怎么盈利
  • 如何设置网站服务器竞价排名的弊端
  • sp怎么做视频网站如何制作自己的链接
  • 网站推广自己可以做吗排名优化网站
  • 做微信小程序是不是不用做网站外链网盘
  • 哪个网站可以做图片链接合肥建站公司seo
  • 上海网站排名公司智能搜索引擎
  • 主页网站建设网络舆情监控系统
  • 武汉做网站知名的公司城关网站seo
  • 公司企业网站建设目的排位及资讯
  • 网站动态图是怎么做的营销计划书7个步骤
  • 嘉兴网站建设seo百度seo一本通
  • flash网站建设江苏网页设计
  • 新手做网站的注意事项怎么推广网站