Snowman: Spawn the Snowball exactly where the Snowman's head was.
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 14:32:56 +0000 (14:32 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 14:32:56 +0000 (14:32 +0000)
This feels a lot more natural.

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6420 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/badguy/snowman.cpp

index 17783de..e353113 100644 (file)
@@ -38,8 +38,8 @@ Snowman::collision_squished(GameObject& object)
   // replace with Snowball
   Vector snowball_pos = get_pos();
   // Hard-coded values from sprites
-  snowball_pos.x += 2;
-  snowball_pos.y += 40;
+  snowball_pos.x += 5;
+  snowball_pos.y += 1;
 
   SnowBall* snowball = new SnowBall(snowball_pos, dir);
   remove_me();