1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

ads-game:: display resources in corner for now

This commit is contained in:
Zeno Rogue 2022-09-29 12:12:26 +02:00
parent 553bd8f466
commit 1391a0e47f

View File

@ -81,7 +81,7 @@ void display(int id, int y, ld val, ld maxv, ld tank, ld unit) {
ld ctr = max<ld>(20*y+10, current_display->ycenter - current_display->radius + 20 * y); ld ctr = max<ld>(20*y+10, current_display->ycenter - current_display->radius + 20 * y);
ld sta = max<ld>(20, current_display->xcenter - current_display->radius + 20); ld sta = max<ld>(20, current_display->xcenter - current_display->radius + 20);
if(pmodel != mdDisk) ctr = 20*y+10, sta = 20; if(true) ctr = 20*y+10, sta = 20;
for(int i=0; i<N; i+=2) curvepoint(atscreenpos(sta - 10 + shape[i+1] * 100, ctr - shape[i] * 100, 1) * C0); for(int i=0; i<N; i+=2) curvepoint(atscreenpos(sta - 10 + shape[i+1] * 100, ctr - shape[i] * 100, 1) * C0);
curvedata.push_back(curvedata[curvestart]); curvedata.push_back(curvedata[curvestart]);