More followups from #667 : Unifying constructor logic + small improvements and docs (#681)

This commit is contained in:
Luan Nico
2021-02-23 17:38:19 -05:00
committed by GitHub
parent 9c38c9bd04
commit 062b73d5f5
14 changed files with 89 additions and 55 deletions

View File

@@ -38,9 +38,10 @@ class Square extends PositionComponent {
c.drawRect(Rect.fromLTWH(width / 2, height / 2, 3, 3), blue);
}
@override
void update(double dt) {
super.update(dt);
angle += speed * t;
angle += speed * dt;
angle %= 2 * math.pi;
}