World* World::current_ = 0;
World::World(const std::string& filename, int level_nr)
+ : level(0), tux(0), background(0), camera(0)
{
// FIXME: Move this to action and draw and everywhere else where the
// world calls child functions
// fall through
case PlayerStatus::GROWUP_BONUS:
- tux->grow();
+ tux->grow(false);
break;
}
}
}
delete level;
+
+ current_ = 0;
}
void
void
World::action(float elapsed_time)
{
- tux->check_bounds(*camera,
- level->back_scrolling, (bool)level->hor_autoscroll_speed);
+ tux->check_bounds(*camera);
/* update objects (don't use iterators here, because the list might change
* during the iteration)