From e2af762e76375d33fe6472cddfa366bbb5af5ef3 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Wed, 26 Aug 2015 10:07:59 -0700 Subject: [PATCH] Updates demo game to work with new constraints api --- examples/game/lib/game_demo_node.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/game/lib/game_demo_node.dart b/examples/game/lib/game_demo_node.dart index df2bb234c9f..93ceeaedf85 100644 --- a/examples/game/lib/game_demo_node.dart +++ b/examples/game/lib/game_demo_node.dart @@ -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;