mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-01 06:23:00 +00:00
first commit of AdS game
This commit is contained in:
43
rogueviz/ads/globals.cpp
Normal file
43
rogueviz/ads/globals.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
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;
|
||||
|
||||
/** 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();
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user