1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-27 21:58:13 +00:00

ads-game:: display score in dS

This commit is contained in:
Zeno Rogue 2022-09-28 21:26:43 +02:00
parent a9c416ac64
commit 0367d9553d
3 changed files with 7 additions and 3 deletions

View File

@ -18,8 +18,6 @@ vector<unique_ptr<ads_object>> rocks;
int ds_rocks = 500;
bool mark_origin = false;
ads_object *main_rock;
struct rock_generator {
ld cshift;

View File

@ -103,6 +103,8 @@ int draw_per_frame = 1000;
ld ds_split_speed = 0.1;
ads_object *main_rock;
int XSCALE = 64;
int YSCALE = 64;
int talpha = 32;

View File

@ -78,7 +78,11 @@ void display(int id, int y, ld val, ld maxv, ld tank, ld unit) {
ld bot = ctr+5;
if(maxv == 0) {
queuestr(sta, ctr, 0, 20, its(val+.05), col >> 8, 1, 0);
string s;
if(main_rock) s = format(tformat, current.shift);
else s = its(val + .5);
queuestr(sta, ctr, 0, 20, s, col >> 8, 1, 0);
return;
}