嘿,我想用phaser v2.3.0绘制一个圆,并通过在上面应用补间来均匀地缩小它。它应该看起来像this。但是从一个完整的圆周开始(一种在圆周上有一定厚度的中空圆盘),并在5秒内均匀地减小它的圆周。你可以采取this example的帮助,因为我是新的相位器,所以我能够理解它,或者如果你能给我简单的例子或解决方案,它会更好。Thanks in advance
发布于 2019-11-20 14:39:40
我知道答案了
var GameState = {
update: function () {
this.graphics.clear();
this.graphics.lineStyle(6, 0xffffff);
this.graphics.arc(40, 90, 20, 0,
game.math.degToRad(this.angle.max), true, 128);
this.graphics.endFill();
}
create: function () {
this.graphics = game.add.graphics(0, 0);
this.world.bringToTop(this.graphics)
this.angle = { min: 0, max: 0 };
this.roundArcTween = this.add.tween(this.angle).to({ max: 360 }, 5000);
}
}https://stackoverflow.com/questions/58535006
复制相似问题