engine-c: scrap mounds + lingering FX + secondary SE clash
This commit is contained in:
parent
0897293f51
commit
4411169cc3
5 changed files with 243 additions and 22 deletions
|
|
@ -638,9 +638,19 @@ void snapshot_capture(Game *g, const char *path) {
|
|||
line(sx + TILE/2, sy + 2, sx + TILE/2, sy + TILE - 3, 165, 140, 95);
|
||||
}
|
||||
if (t->terrain == T_SCRAP && t->scrap > 0) {
|
||||
int cc = (sx+TILE/2), cr = (sy+TILE/2);
|
||||
for (int k=0;k<t->scrap/16;k++)
|
||||
disc(cc + ((k*7)%12)-6, cr + ((k*5)%12)-6, 3, 235,190,85);
|
||||
/* stacked scrap mounds (KKND2 resource piles) */
|
||||
int cc = sx + TILE / 2, cr = sy + TILE / 2 + 2;
|
||||
int n = 3 + t->scrap / 28;
|
||||
if (n > 9) n = 9;
|
||||
for (int k = 0; k < n; k++) {
|
||||
int ox = ((k * 7) % 14) - 7;
|
||||
int oy = ((k * 5) % 10) - 5 - (k / 3) * 2;
|
||||
int rad = 4 + (k & 1) + (t->scrap > 120 ? 1 : 0);
|
||||
disc(cc + ox, cr + oy, rad, 235, 190, 85);
|
||||
disc(cc + ox - 1, cr + oy - rad / 2, rad - 1, 210, 165, 70);
|
||||
disc(cc + ox + 1, cr + oy - rad + 1, (rad > 3) ? rad - 2 : 2,
|
||||
255, 215, 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue