1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-04 13:48:06 +00:00

rogueviz:: ads:: time_shift setting

This commit is contained in:
Zeno Rogue
2025-06-22 15:57:26 +02:00
parent 56767f0d8f
commit 296abbe7c4
5 changed files with 24 additions and 30 deletions

View File

@@ -616,11 +616,10 @@ void view_ds_game() {
queuecurve(shiftless(sphereflip), ghost_color, 0, obj_prio[rock.type]).flags |= POLY_NO_FOG | POLY_FORCEWIDE;
}
if(view_proper_times && rock.type != oParticle) {
if(rock.type != oParticle) {
ld t = rock.pt_main.shift;
if(rock.type == oMainRock) t += current.shift;
string str = hr::format(tformat, t / ds_time_unit);
queuestr(shiftless(sphereflip * rgpushxto0(rock.pt_main.h)), time_scale, str, 0xFFFF00, 8);
view_time(shiftless(sphereflip * rgpushxto0(rock.pt_main.h)), t, 0xFFFF00);
}
if(rock.pt_main.h[2] > 0.1 && rock.life_end == HUGE_VAL) {
@@ -676,10 +675,7 @@ void view_ds_game() {
}
});
if(view_proper_times) {
string str = hr::format(tformat, (cr.shift + ss.start) / ds_time_unit);
queuestr(shiftless(sphereflip * rgpushxto0(cr.h)), time_scale, str, 0xC0C0C0, 8);
}
view_time(shiftless(sphereflip * rgpushxto0(cr.h)), cr.shift + ss.start, 0xC0C0C0);
}
if(!game_over && !paused) {
@@ -705,10 +701,7 @@ void view_ds_game() {
});
poly_outline = 0xFF;
if(view_proper_times) {
string str = hr::format(tformat, ship_pt / ds_time_unit);
queuestr(shiftless(sphereflip), time_scale, str, 0xFFFFFF, 8);
}
view_time(shiftless(sphereflip), ship_pt, 0xFFFFFF);
}
if(paused && !game_over && !in_replay && !hv && !which_cross) {