1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 00:33:01 +00:00

ads-game:: display other frames of reference while paused

This commit is contained in:
Zeno Rogue
2022-09-17 15:16:04 +02:00
parent 38b817187e
commit b1baf393ba
5 changed files with 73 additions and 26 deletions

View File

@@ -8,14 +8,17 @@ ld simspeed = TAU;
/** by how much do WAS keys accelerate */
ld accel = 6;
/** transform world coordinates to ship coordinates */
/** transform world coordinates to current view coordinates */
ads_matrix current;
/** SL cell closest to the ship */
cell *vctr;
/** transform world coordinates to ship coordinates (used when paused) */
ads_matrix current_ship;
/** SL cell closest to the current view/ship */
cell *vctr, *new_vctr, *vctr_ship;
/** world coordinates of vctr -- technically, this is a shiftmatrix */
ads_matrix vctrV;
ads_matrix vctrV, new_vctrV, vctrV_ship;
/** how far is vctr from the ship */
ld vctr_dist;
@@ -26,6 +29,9 @@ ld ang = 0;
/** ship's current proper time */
ld ship_pt;
/** paused camera's current proper time */
ld view_pt;
/** until when is the ship invincible */
ld invincibility_pt;