1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-06 22:20:10 +00:00
hyperrogue/rogueviz/ads/globals.cpp

66 lines
1.2 KiB
C++
Raw Normal View History

2022-09-11 12:16:50 +02:00
namespace hr {
namespace ads_game {
/** simulation speed */
ld simspeed = TAU;
/** by how much do WAS keys accelerate */
ld accel = 6;
/** transform world coordinates to ship coordinates */
ads_matrix current;
/** SL cell closest to the ship */
cell *vctr;
/** world coordinates of vctr -- technically, this is a shiftmatrix */
ads_matrix vctrV;
/** how far is vctr from the ship */
ld vctr_dist;
/** how is the ship shape rotated */
ld ang = 0;
/** ship's current proper time */
ld ship_pt;
2022-09-12 12:57:52 +02:00
/** until when is the ship invincible */
ld invincibility_pt;
2022-09-11 12:16:50 +02:00
/** is the game paused */
bool paused;
/** auto-rotate the screen */
bool auto_rotate = false;
/** should we display the proper times of all objects */
bool view_proper_times = false;
/** format for displaying time */
const char *tformat = "%.2f";
void game_menu();
2022-09-11 13:42:51 +02:00
/** all the missiles and objects currently displayed */
2022-09-11 13:43:44 +02:00
vector<struct ads_object*> displayed;
2022-09-11 13:42:51 +02:00
color_t missile_color = 0xFF0000FF;
2022-09-12 12:57:52 +02:00
bool game_over;
2022-09-12 12:24:18 +02:00
struct player_data {
int hitpoints;
int score;
int ammo;
ld fuel;
ld oxygen;
};
2022-09-12 12:57:52 +02:00
ld how_much_invincibility = TAU / 4;
2022-09-12 12:24:18 +02:00
player_data pdata, max_pdata, tank_pdata;
2022-09-11 12:16:50 +02:00
}}