engine-c: scrap mounds + lingering FX + secondary SE clash

This commit is contained in:
local-model/engine-L2-grok-4.5 2026-09-19 14:20:56 +02:00
parent 0897293f51
commit 4411169cc3
No known key found for this signature in database
5 changed files with 243 additions and 22 deletions

View file

@ -415,9 +415,16 @@ SDL_Texture *sprites_make_terrain(SDL_Renderer *r, TerrainType t) {
(Uint8)kknd_clampi(tb+v,0,255), 255);
}
if (t == T_SCRAP) {
for (int i = 0; i < 10; i++) {
int x = (i*97) % TILE, y = (i*61) % TILE;
disc(s, x, y, 2, 180, 150, 60, 255);
/* stacked scrap mounds (live parity with snapshot) */
int cc = TILE / 2, cr = TILE / 2 + 2;
for (int k = 0; k < 7; k++) {
int ox = ((k * 7) % 14) - 7;
int oy = ((k * 5) % 10) - 5 - (k / 3) * 2;
int rad = 3 + (k & 1);
disc(s, cc + ox, cr + oy, rad, 235, 190, 85, 255);
disc(s, cc + ox - 1, cr + oy - rad / 2, rad - 1, 210, 165, 70, 255);
disc(s, cc + ox + 1, cr + oy - rad + 1,
(rad > 2) ? rad - 2 : 1, 255, 215, 120, 255);
}
}
if (t == T_WATER) {