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

腾讯云服务器可以做网站稳定一天赚200块游戏

腾讯云服务器可以做网站,稳定一天赚200块游戏,网络运维课程,网站商城建设方案欢迎来到程序小院 机器人向前冲 玩法:一直走动的机器人,点击鼠标左键进行跳跃,跳过不同的匝道,掉下去即为游戏接续, 碰到匝道铁钉游戏结束,一直往前冲吧^^。开始游戏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.yayakq.cn/news/768930/

相关文章:

  • 校园网站界面建设网站建设与维护管理办法
  • 建网站最少需要多少钱网站用户体验方案
  • 衡阳市网站建设公司网站建设网络公关
  • 哈尔滨网站制作哪里专业wordpress 文字不显示
  • 在哪个网站可以一对一做汉教建设工程造价网站
  • 网站关键词添加一个空间放2个网站
  • 汕头模版网站建设怎样建立网站挣钱
  • 网站空间如何申请网站推广策划思维导图
  • 公司外贸网站wordpress wp shop主题
  • 云南高端网站建设公司奉化建设局网站
  • 重庆网站首页排名公司如何自己做网页链接
  • 东莞企业网站建设方案wordpress首页静态页面
  • 金山文档数字变成e+10怎么在网站里做关键词优化
  • 没备案可以做网站么帮人家做家务的网站
  • 如何租用网站服务器拍卖网站制作
  • 网站恢复正常沐浴露营销软文
  • 无代码网站开发程序开发工程师需要哪些能力
  • 建站模板怎么样把广告做在百度上
  • 江苏省建设厅官方网站资质查询琪恋网站建设
  • 学做网站 空间 域名网站关键词没排名怎么办
  • 永康公司网站开发主题字体怎么设置 wordpress
  • 实验室网站建设意义有网但是网页打不开是什么原因
  • 做房产应看的网站小程序怎么申请注册费用
  • 做网站买域名要多少钱企业内网 网站建设的解决方案
  • 常熟网站制作哪家好wordpress 主题 插件 加载
  • 淘宝客如何做网站推广各大推广平台
  • 做网站用的什么服务器企业商城网站建设价格
  • 抚州哪里有做企业网站的公司笔记本做网站服务器
  • 网站空间编辑器遵义城乡住房建设厅网站
  • 企业建设网站企业工会网站建设可以