-void
-Player::is_dying()
-{
- remove_powerups();
- dying = DYING_NOT;
-}
-
-bool Player::is_dead()
-{
- float scroll_x =
- World::current()->camera->get_translation().x;
- float scroll_y =
- World::current()->camera->get_translation().y;
- if(base.y > screen->h + scroll_y || base.y > World::current()->get_level()->height*32 ||
- base.x < scroll_x - AUTOSCROLL_DEAD_INTERVAL) // can happen in auto-scrolling
- return true;
- else
- return false;
-}
-