Disable drop dash for Miles

This commit is contained in:
Lucas S. Vieira 2025-04-07 19:07:42 -03:00
parent 58376fa33a
commit 4a4b4f30e7

View file

@ -1007,13 +1007,15 @@ player_update(Player *player)
player->vel.vy = -player->cnst->y_min_jump; player->vel.vy = -player->cnst->y_min_jump;
player->holding_jump = 0; player->holding_jump = 0;
} else { } else {
// Drop dash charge wait if(player->character == CHARA_SONIC) {
if(!player->holding_jump) { // Drop dash charge wait
if(player->framecount < 20) { if(!player->holding_jump) {
player->framecount++; if(player->framecount < 20) {
} else { player->framecount++;
sound_play_vag(sfx_dropd, 0); } else {
player_set_action(player, ACTION_DROPDASH); sound_play_vag(sfx_dropd, 0);
player_set_action(player, ACTION_DROPDASH);
}
} }
} }
} }
@ -1389,7 +1391,7 @@ player_draw(Player *player, VECTOR *pos)
(int16_t)(pos->vx >> 12) - tail_distance, (int16_t)(pos->vx >> 12) - tail_distance,
(int16_t)(pos->vy >> 12), (int16_t)(pos->vy >> 12),
player->anim_dir < 0, player->anim_dir < 0,
(is_rolling ? 0 : anim_angle)); // TODO: Tail angle anim_angle); // TODO: Tail angle
} }
} }