Decreased Animation time.
authormile4712 <Lehner.Michael43@gmail.com>
Wed, 19 Dec 2018 21:24:55 +0000 (22:24 +0100)
committermile4712 <Lehner.Michael43@gmail.com>
Wed, 19 Dec 2018 21:24:55 +0000 (22:24 +0100)
src/visualization/Playground/HelloMovingImage/HelloMovingImage/Playground.cs

index a56649c..8780b6b 100644 (file)
@@ -241,6 +241,8 @@ namespace BombermanPlayground
     {
         public static double BlockSize { get; set; } = 1.0;
 
+        const int c_AnimationTime = 100;
+
         public BombermanBlock(double posX, double posY)
         {
             Source = ImageSource.FromResource(Playground.c_ImageNamespace + ".Images.Unknown.png");
@@ -253,7 +255,7 @@ namespace BombermanPlayground
 
         public void MoveTo(double posX, double posY)
         {
-            this.TranslateTo(BlockSize * posY + BlockSize / 2, BlockSize * posX + BlockSize / 2);      // Xamarin X is Bomberman Y and vise-versa.
+            this.TranslateTo(BlockSize * posY + BlockSize / 2, BlockSize * posX + BlockSize / 2, c_AnimationTime);     // Xamarin X is Bomberman Y and vise-versa.
         }
 
     }