| Index: sky/sdk/example/game/lib/game_demo_world.dart
|
| diff --git a/sky/sdk/example/game/lib/game_demo_world.dart b/sky/sdk/example/game/lib/game_demo_world.dart
|
| index a65ed98d979f5d4efdaad38b2c4990ea61d9d99a..eff5fe2f90b337579ab1bf08be449bbaa5837dde 100644
|
| --- a/sky/sdk/example/game/lib/game_demo_world.dart
|
| +++ b/sky/sdk/example/game/lib/game_demo_world.dart
|
| @@ -303,6 +303,12 @@ class Asteroid extends Sprite {
|
| _rand.nextDouble() * _maxAsteroidSpeed * 2 - _maxAsteroidSpeed);
|
|
|
| userInteractionEnabled = true;
|
| +
|
| + // Rotate forever
|
| + double direction = (_rand.nextBool()) ? 360.0 : -360.0;
|
| + ActionTween rot = new ActionTween( (a) => rotation = a, 0.0, direction, 2.0 * _rand.nextDouble() + 2.0);
|
| + ActionRepeatForever repeat = new ActionRepeatForever(rot);
|
| + actions.run(repeat);
|
| }
|
|
|
| bool handleEvent(SpriteBoxEvent event) {
|
|
|