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

@ -61,8 +61,6 @@ class LogoComponent extends SpriteComponent with HasGameRef<DebugExample> {
@override
void update(double dt) {
super.update(dt);
x += xDirection * speed * dt;
final rect = toRect();