#include "timer.hpp"
static const int START_COINS = 100;
-static const int MAX_COINS = 99999;
+static const int MAX_COINS = 9999;
PlayerStatus* player_status = 0;
: coins(START_COINS),
bonus(NO_BONUS),
max_fire_bullets(0),
- max_ice_bullets(0),
- score_multiplier(1),
- max_score_multiplier(1)
+ max_ice_bullets(0)
{
reset();
{
coins = START_COINS;
bonus = NO_BONUS;
- score_multiplier = 1;
- max_score_multiplier = 1;
}
void
writer.write_int("iceflowers", max_ice_bullets);
writer.write_int("coins", coins);
- writer.write_int("max-score-multiplier", max_score_multiplier);
}
void
lisp.get("iceflowers", max_ice_bullets);
lisp.get("coins", coins);
- lisp.get("max-score-multiplier", max_score_multiplier);
}
void
Surface* coin_surf = coin_surface.get();
if (coin_surf) {
- context.draw_surface(coin_surf, Vector(SCREEN_WIDTH - BORDER_X - coin_surf->get_width() - gold_fixed_text->get_text_width(coins_text), BORDER_Y + 1), LAYER_HUD);
+ context.draw_surface(coin_surf, Vector(SCREEN_WIDTH - BORDER_X - coin_surf->get_width() - fixed_font->get_text_width(coins_text), BORDER_Y + 1), LAYER_HUD);
}
- context.draw_text(gold_fixed_text, coins_text, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y), ALIGN_RIGHT, LAYER_HUD);
+ context.draw_text(fixed_font, coins_text, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y), ALIGN_RIGHT, LAYER_HUD, PlayerStatus::text_color);
context.pop_transform();
}
{
coins = other.coins;
bonus = other.bonus;
- score_multiplier = other.score_multiplier;
- max_score_multiplier = other.max_score_multiplier;
}