mirror of
https://github.com/wassname/phaser.git
synced 2026-07-31 12:40:07 +08:00
ArcadePhysics.updateMotion applies the dt to the velocity calculations as well as position now (thanks jcs)
This commit is contained in:
@@ -59,7 +59,7 @@ function update() {
|
||||
ufo.angle = -15;
|
||||
leftBtn.alpha = 0.6;
|
||||
}
|
||||
else if (game.input.keyboard.isDown(Phaser.Keyboard.RIGHT)
|
||||
else if (game.input.keyboard.isDown(Phaser.Keyboard.RIGHT))
|
||||
{
|
||||
ufo.x += speed;
|
||||
ufo.angle = 15;
|
||||
|
||||
Reference in New Issue
Block a user