Made transition to and from boat smoother
authorChristoph Sommer <mail@christoph-sommer.de>
Wed, 21 Jun 2006 15:00:10 +0000 (15:00 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Wed, 21 Jun 2006 15:00:10 +0000 (15:00 +0000)
SVN-Revision: 3688

data/images/worldmap/common/boat/boat.sprite
data/images/worldmap/common/boat/boat_0.png
data/images/worldmap/common/boat/boat_1.png
data/images/worldmap/common/boat/boat_empty.png
src/worldmap/sprite_change.cpp

index b3aeb53..a5a2642 100644 (file)
@@ -1,42 +1,63 @@
 (supertux-sprite
   (action
+    (hitbox 6 41 0 0)
     (name "empty")
-    (images "boat_empty.png")
+    (images 
+      "boat_empty.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "small-stop")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "small-walking")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "fire-stop")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "fire-walking")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "large-stop")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
   (action
+    (hitbox 6 41 0 0)
     (name "large-walking")
-(fps 5)
-    (images "boat_1.png"
-"boat_0.png")
+    (fps 5)
+    (images 
+      "boat_1.png"
+      "boat_0.png"
+    )
   )
 )
index 1fa0574..5806d9c 100644 (file)
Binary files a/data/images/worldmap/common/boat/boat_0.png and b/data/images/worldmap/common/boat/boat_0.png differ
index a34ae2e..00c8412 100644 (file)
Binary files a/data/images/worldmap/common/boat/boat_1.png and b/data/images/worldmap/common/boat/boat_1.png differ
index dd3b6a9..fb877b2 100644 (file)
Binary files a/data/images/worldmap/common/boat/boat_empty.png and b/data/images/worldmap/common/boat/boat_empty.png differ
index ef32fb2..b4db66d 100644 (file)
@@ -55,7 +55,7 @@ SpriteChange::draw(DrawingContext& context)
 {
   if(in_stay_action && stay_action != "") {
     sprite->set_action(stay_action);
-    sprite->draw(context, pos * 32 + Vector(16, 16), LAYER_OBJECTS-1);
+    sprite->draw(context, pos * 32, LAYER_OBJECTS-1);
   }
 }