(action
(name "earth-climbing-right")
- (hitbox 516 134 32 64)
+ (hitbox 522 141 32 64)
(images "earth/light/stand.png"))
(action
(name "earth-climbing-left")
- (hitbox 516 134 32 64)
+ (hitbox 522 141 32 64)
(mirror-action "earth-climbing-right"))
(action
(name "earth-duck-right")
(hitbox 516 134 32 64)
- (images "earth/light/stand.png"))
+ (images "earth/light/duck.png"))
(action
(name "earth-duck-left")
(action
(name "earth-backflip-right")
- (hitbox 516 134 32 64)
- (images "earth/light/stand.png"))
+ (hitbox 516 537 32 32)
+ (images "earth/light/backflip.png"))
(action
(name "earth-backflip-left")
- (hitbox 516 134 32 64)
+ (hitbox 516 537 32 32)
(mirror-action "earth-backflip-right"))
(action
(action
(name "air-climbing-right")
- (hitbox 16 14 32 64)
+ (hitbox 22 21 32 64)
(images "air/hat/stand.png"))
(action
(name "air-climbing-left")
- (hitbox 16 14 32 64)
+ (hitbox 22 21 32 64)
(mirror-action "air-climbing-right"))
(action
(action
(name "air-backflip-right")
- (hitbox 16 14 32 64)
- (images "air/hat/stand.png"))
+ (hitbox 16 37 32 32)
+ (images "air/hat/backflip.png"))
(action
(name "air-backflip-left")
- (hitbox 16 14 32 64)
+ (hitbox 16 37 32 32)
(mirror-action "air-backflip-right"))
(action
(action
(name "earth-climbing-right")
- (hitbox 16 14 32 64)
+ (hitbox 22 21 32 64)
(images "earth/hardhat/stand.png"))
(action
(name "earth-climbing-left")
- (hitbox 16 14 32 64)
+ (hitbox 22 21 32 64)
(mirror-action "earth-climbing-right"))
(action
(action
(name "earth-backflip-right")
- (hitbox 16 14 32 64)
- (images "earth/hardhat/stand.png"))
+ (hitbox 16 37 32 32)
+ (images "earth/hardhat/backflip.png"))
(action
(name "earth-backflip-left")
- (hitbox 16 14 32 64)
+ (hitbox 16 37 32 32)
(mirror-action "earth-backflip-right"))
(action
backflipping = false;
backflip_direction = 0;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
visible = true;
ability_time = 0;
stone = false;
backflipping = false;
backflip_direction = 0;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
GameSession::current()->start_sequence(sequence_name);
}
if (backflip_timer.started()) physic.set_velocity_x(100 * backflip_direction);
//rotate sprite during flip
sprite->set_angle(sprite->get_angle() + (dir==LEFT?1:-1) * elapsed_time * (360.0f / 0.5f));
+ if (player_status->bonus == EARTH_BONUS || player_status->bonus == AIR_BONUS) {
+ powersprite->set_angle(sprite->get_angle());
+ if (player_status->bonus == EARTH_BONUS)
+ lightsprite->set_angle(sprite->get_angle());
+ }
}
// set fall mode...
backflipping = false;
backflip_direction = 0;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
// if controls are currently deactivated, we take care of standing up ourselves
if (deactivated)
backflipping = false;
backflip_direction = 0;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
}
}
physic.set_velocity_x(0);
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
if(!completely && is_big()) {
SoundManager::current()->play("sounds/hurt.wav");
duck = false;
backflipping = false;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
set_bonus(NO_BONUS, true);
} else if(player_status->bonus == NO_BONUS) {
safe_timer.start(TUX_SAFE_TIME);
duck = false;
backflipping = false;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
last_ground_y = vector.y;
if (climbing) stop_climbing(*climbing);
backflipping = false;
backflip_direction = 0;
sprite->set_angle(0.0f);
+ powersprite->set_angle(0.0f);
+ lightsprite->set_angle(0.0f);
}
}