mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Limit Miles flight only when going up
This commit is contained in:
parent
ea56260554
commit
5264899071
2 changed files with 5 additions and 1 deletions
|
@ -1125,7 +1125,8 @@ player_update(Player *player)
|
||||||
}
|
}
|
||||||
} else if(player->action == ACTION_FLY) {
|
} else if(player->action == ACTION_FLY) {
|
||||||
if(player->framecount < PLAYER_FLY_MAXFRAMES) {
|
if(player->framecount < PLAYER_FLY_MAXFRAMES) {
|
||||||
player->framecount++;
|
if(player->vel.vy <= 0)
|
||||||
|
player->framecount++;
|
||||||
|
|
||||||
// spinrev is a flight state. 1 is ascent, 0 is descent.
|
// spinrev is a flight state. 1 is ascent, 0 is descent.
|
||||||
// This state affects gravity, so we're OK with the speed here
|
// This state affects gravity, so we're OK with the speed here
|
||||||
|
|
|
@ -677,6 +677,9 @@ screen_level_draw(void *d)
|
||||||
snprintf(buffer, 255, "SPR %4d", level_get_num_sprites());
|
snprintf(buffer, 255, "SPR %4d", level_get_num_sprites());
|
||||||
font_draw_sm(buffer, 248, 68);
|
font_draw_sm(buffer, 248, 68);
|
||||||
|
|
||||||
|
snprintf(buffer, 255, "FC %5d", player.framecount);
|
||||||
|
font_draw_sm(buffer, 248, 76);
|
||||||
|
|
||||||
// Player debug
|
// Player debug
|
||||||
if(debug_mode > 1) {
|
if(debug_mode > 1) {
|
||||||
snprintf(buffer, 255,
|
snprintf(buffer, 255,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue