Standardize on dt in update methods (#679)

* Standardize on dt in update methods

* Update changelog entry

* Update CHANGELOG.md

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
Lukas Klingsbo
2021-02-23 17:36:05 +01:00
committed by GitHub
parent 9735cf5e08
commit cdca4b6858
11 changed files with 27 additions and 26 deletions

View File

@@ -37,9 +37,9 @@ class Square extends PositionComponent with HasGameRef<MyGame> {
}
@override
void update(double t) {
super.update(t);
angle += SPEED * t;
void update(double dt) {
super.update(dt);
angle += SPEED * dt;
angle %= 2 * math.pi;
}