mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-04 10:42:51 +00:00
ads-game:: display score in dS
This commit is contained in:
parent
a9c416ac64
commit
0367d9553d
@ -18,8 +18,6 @@ vector<unique_ptr<ads_object>> rocks;
|
|||||||
int ds_rocks = 500;
|
int ds_rocks = 500;
|
||||||
bool mark_origin = false;
|
bool mark_origin = false;
|
||||||
|
|
||||||
ads_object *main_rock;
|
|
||||||
|
|
||||||
struct rock_generator {
|
struct rock_generator {
|
||||||
ld cshift;
|
ld cshift;
|
||||||
|
|
||||||
|
@ -103,6 +103,8 @@ int draw_per_frame = 1000;
|
|||||||
|
|
||||||
ld ds_split_speed = 0.1;
|
ld ds_split_speed = 0.1;
|
||||||
|
|
||||||
|
ads_object *main_rock;
|
||||||
|
|
||||||
int XSCALE = 64;
|
int XSCALE = 64;
|
||||||
int YSCALE = 64;
|
int YSCALE = 64;
|
||||||
int talpha = 32;
|
int talpha = 32;
|
||||||
|
@ -78,7 +78,11 @@ void display(int id, int y, ld val, ld maxv, ld tank, ld unit) {
|
|||||||
ld bot = ctr+5;
|
ld bot = ctr+5;
|
||||||
|
|
||||||
if(maxv == 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user