Introduce updateTree (#1158)

* Introduce updateTree

* Update tests

* Fix update for game-in-game situations

* Add dartdoc to updateTree
This commit is contained in:
Lukas Klingsbo
2021-12-03 14:01:46 +01:00
committed by GitHub
parent bc31e11d29
commit fe162c6d90
29 changed files with 43 additions and 49 deletions

View File

@ -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();