Skip to content

Commit

Permalink
game: Add initial financial report
Browse files Browse the repository at this point in the history
Badly incomplete, but easier to continue from this.
  • Loading branch information
mrannanj committed Jul 12, 2024
1 parent 77a20fc commit 6315e59
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/game/scenes/vs.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,17 @@ void vs_render(scene *scene) {
// render plug's bitching
font_render_wrapped(&font_small, "Hmph. you'd think this remake would've been done by now, huh?", 59, 165, 220,
COLOR_YELLOW);

// FIXME: Missing information, and money is not the same as winnings.
char winnings[16];
snprintf(winnings, sizeof(winnings), "$ %u", player1->pilot->money);
font_render_wrapped(&font_small, "FINANCIAL REPORT", 190, 6, 100, COLOR_GREEN);
font_render(&font_small, "WINNINGS:", 190, 16, COLOR_DARK_GREEN);
font_render(&font_small, winnings, 250, 16, COLOR_GREEN);
font_render(&font_small, "BONUSES:", 196, 24, COLOR_DARK_GREEN);
font_render(&font_small, "REPAIR COST:", 172, 32, COLOR_DARK_GREEN);
font_render(&font_small, "PROFIT:", 202, 40, COLOR_DARK_GREEN);
font_render_wrapped(&font_small, "FIGHT STATISTICS", 210, 60, 60, COLOR_GREEN);
} else {
font_render_wrapped(&font_small, lang_get(749 + (11 * player1->pilot->pilot_id) + player2->pilot->pilot_id), 59,
160, 150, COLOR_YELLOW);
Expand Down

0 comments on commit 6315e59

Please sign in to comment.