Merge branch 'master' of ssh://nwrk.biz:2294/~/xamarin-client DEVELOPMENT
authorMichael Lehner <Lehner.Michael43@gmail.com>
Thu, 20 Dec 2018 10:18:22 +0000 (11:18 +0100)
committerMichael Lehner <Lehner.Michael43@gmail.com>
Thu, 20 Dec 2018 10:18:22 +0000 (11:18 +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.
         }
 
     }