From 0ee8c885294d24a4a536b47a3cbc7e73322b3435 Mon Sep 17 00:00:00 2001 From: rizkyaz0 Date: Sat, 3 Oct 2026 06:57:12 +0700 Subject: [PATCH] Perbaiki genangan asam jurus lob yang melayang di atas lantai (pusat gambar di lantai) --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 2a851c8..b947f27 100644 --- a/game.js +++ b/game.js @@ -1088,7 +1088,7 @@ for (const h of cfx.hazards) { if (h.fire) { fxDrawFire(h); continue; } const im = images[h.img]; if (!im) continue; const fade = h.t > h.life - .6 ? Math.max(0, (h.life - h.t) / .6) : 1, w = h.radius * 2.4, hh = im.height / im.width * w; - ctx.save(); ctx.globalAlpha = .9 * fade; ctx.drawImage(im, Math.round(h.x - w / 2), CONFIG.groundY + 6 - hh, w, hh); ctx.restore(); + ctx.save(); ctx.globalAlpha = .9 * fade; ctx.drawImage(im, Math.round(h.x - w / 2), Math.round(CONFIG.groundY + 4 - hh / 2), w, hh); ctx.restore(); // genangan terlihat di tengah gambar persegi: pusatnya diletakkan di lantai } } function drawCfFront() {