#Phaser

Phaser的timer用法

1.延迟timer,相当于setTimeoutgame.time.events.add(Phaser.Timer.SECOND*5,this.delayOver,this);2.循环timer,相当于setIntervalgame.time.events.loop(Phaser.Timer.SECOND,this.ad...
代码星球 ·2020-06-29

phaser常用API总结

1.游戏画布的尺寸varwidth=game.width,height=game.height; 2.中心点坐标vargame=newPhaser.Game(...);varcenterX=game.world.centerX,centerY=game.world.centerY; 3.随机坐标va...
代码星球 ·2020-06-29