mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
Introduce updateTree (#1158)
* Introduce updateTree * Update tests * Fix update for game-in-game situations * Add dartdoc to updateTree
This commit is contained in:
@ -23,7 +23,6 @@ class JoystickPlayer extends SpriteComponent with HasGameRef {
|
||||
|
||||
@override
|
||||
void update(double dt) {
|
||||
super.update(dt);
|
||||
if (!joystick.delta.isZero()) {
|
||||
position.add(joystick.relativeDelta * maxSpeed * dt);
|
||||
angle = joystick.delta.screenAngle();
|
||||
|
||||
Reference in New Issue
Block a user