ads-game:: resources are used

This commit is contained in:
Zeno Rogue
2022-09-12 12:57:52 +02:00
parent 3578ae0631
commit cd84dfca4f
6 changed files with 101 additions and 32 deletions
+7
View File
@@ -26,6 +26,9 @@ ld ang = 0;
/** ship's current proper time */
ld ship_pt;
/** until when is the ship invincible */
ld invincibility_pt;
/** is the game paused */
bool paused;
@@ -45,6 +48,8 @@ vector<struct ads_object*> displayed;
color_t missile_color = 0xFF0000FF;
bool game_over;
struct player_data {
int hitpoints;
int score;
@@ -53,6 +58,8 @@ struct player_data {
ld oxygen;
};
ld how_much_invincibility = TAU / 4;
player_data pdata, max_pdata, tank_pdata;
}}