phaser-framework

    0热度

    1回答

    我正在第一次使用Phaser JS游戏框架。我试图确定两个精灵重叠或碰撞的时间。这里是我正在努力这样做: 在更新功能: update: function() { this.game.physics.collide(this.player1, this.player2, this.CollisionD, null, this); this.game.physics.overlap

    2热度

    2回答

    我想知道如何用移相器进行双跳。 this.jumpCount = 0; this.jumpkey = game.input.keyboard.addKey(Phaser.Keyboard.UP); this.jumpkey.onDown.add(jumpCheck, this); jumpCheck = function(){ if (player.jumpCount < 2){

    0热度

    2回答

    我在游戏中我使用移相器使得下面的代码: game.add.sprite(response.Turret0.posx, response.Turret0.posy, "turret"); game.add.sprite(response.Turret1.posx, response.Turret1.posy, "turret"); game.add.sprite(response.Turret2

    0热度

    2回答

    我对Phaser游戏有以下代码。它只是用于通过使用AJAX从JSON文件加载信息来获得关卡的可视化想法。 <!doctype html> <html> <head> <meta charset="UTF-8" /> <title>hello phaser!</title> <script src="phaser.min.js"></script>

    0热度

    1回答

    我尽量让我的第一场比赛与移相器,但是当我使用tileSprite功能用我自己的形象我得到了一个错误: this.game.load.image('ground', 'assets/ground.png'); this.ground = this.game.add.tileSprite(0, game.world.height - 432, game.world.width, 281, 'grou

    0热度

    1回答

    我正在使用Phaser js框架构建游戏。其环形流道和我刚started.This是代码: <!doctype html> <html> <head> <title>Game2</title> <script type="text/javascript" src="js/phaser.min.js"></script> </head> <body> <sc

    19热度

    1回答

    我正在使用phaser.js来制作游戏,并且无法找到关于如何使背景无限滚动的任何教程。我希望背景能够平铺/重复,并且随着角色向右移动无限。 我目前正在使用相机,并让相机跟随角色。 这里是我的关于如何做到这一点的想法:检查摄像头的位置不断地在更新(),然后将其移动到游戏的开头(最左边),与当时的字符一起。我认为这可能不是一个平稳的过渡,所以我想知道是否有更好的方法来做到这一点。

    2热度

    2回答

    如何使用js,phaser或jquery锁定移动设备的方向? 。是否有一种通用的方式来执行此操作,以便锁定方向,而不管使用的平台或设备如何? 我基本上想锁定基于浏览器的游戏的横向模式。