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

@ -52,7 +52,6 @@ class MyCollidable extends PositionComponent
@override
void update(double dt) {
super.update(dt);
if (_isWallHit) {
removeFromParent();
return;

View File

@ -89,7 +89,6 @@ class AnimatedComponent extends SpriteAnimationComponent
@override
void update(double dt) {
super.update(dt);
position += velocity * dt;
}

View File

@ -121,7 +121,6 @@ abstract class MyCollidable extends PositionComponent
@override
void update(double dt) {
super.update(dt);
if (_isDragged) {
return;
}