Tux::Tux(WorldMap* worldmap_) :
back_direction(),
worldmap(worldmap_),
- sprite(),
+ sprite(SpriteManager::current()->create("images/worldmap/common/tux.sprite")),
controller(),
input_direction(),
direction(),
moving(),
ghost_mode()
{
- sprite = SpriteManager::current()->create("images/worldmap/common/tux.sprite");
-
offset = 0;
moving = false;
direction = D_NONE;
case ICE_BONUS:
sprite->set_action(moving ? "ice-walking" : "ice-stop");
break;
+ case AIR_BONUS:
+ sprite->set_action(moving ? "air-walking" : "air-stop");
+ break;
+ case EARTH_BONUS:
+ sprite->set_action(moving ? "earth-walking" : "earth-stop");
+ break;
case NO_BONUS:
sprite->set_action(moving ? "small-walking" : "small-stop");
break;