mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-13 19:30:14 +08:00
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user