Snowman: Spawn the Snowball exactly where the Snowman's head was.
authorFlorian Forster <supertux@octo.it>
Sat, 27 Feb 2010 14:32:56 +0000 (14:32 +0000)
committerFlorian Forster <supertux@octo.it>
Sat, 27 Feb 2010 14:32:56 +0000 (14:32 +0000)
This feels a lot more natural.

SVN-Revision: 6420

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();