mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Updates demo game to work with new constraints api
This commit is contained in:
parent
065673711e
commit
e2af762e76
@ -436,7 +436,7 @@ class MovingEnemy extends Obstacle {
|
||||
maxDamage = 2.0;
|
||||
addChild(_sprt);
|
||||
|
||||
constraints = [new ConstraintRotationToMovement(0.0, 0.5)];
|
||||
constraints = [new ConstraintRotationToMovement(dampening: 0.5)];
|
||||
}
|
||||
|
||||
final double _swirlSpacing = 80.0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user