+ // bounce
+ Player* player = dynamic_cast<Player*>(&object);
+ if (player)
+ player->bounce(*this);
+
+ /* Create death animation for the (now headless) snowman. */
+ set_action (dir == LEFT ? "headless-left" : "headless-right", /* loops = */ -1);
+ set_pos (get_pos () + Vector (-4.0, 19.0)); /* difference in the sprite offsets */
+ physic.set_velocity_y(0);
+ physic.set_acceleration_y(0);
+ physic.enable_gravity(true);
+ set_state (STATE_FALLING);
+
+ /* Create a new snowball where the snowman's head was */
+ /* TODO: Pass on our "dead_script" to the snowball. */