0
我是Phaser的新手,我需要你的帮助。我想让我角色的项目从墙上反弹。到目前为止,在建立()我有这样的事情:Phaser bounciness
game.physics.startSystem(Phaser.Physics.ARCADE);
ball = game.add.group();
ball.enableBody = true;
ball.setAll('body.collideWorldBounds', true);
后来在更新():
fire.onDown.add(function() {
var bullet = ball.create(Char1.x,Char1.y,'ball');
if(bullet){
bullet.body.velocity.set(0,-400);
}