From bf2609e2a9847897ba19a0c653934512141f9f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Tue, 24 Mar 2026 09:13:27 +0100 Subject: [PATCH] fix view port rendering to include --- cmd/client/particles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/client/particles.go b/cmd/client/particles.go index de10649..3b32b49 100644 --- a/cmd/client/particles.go +++ b/cmd/client/particles.go @@ -213,7 +213,7 @@ func (g *Game) RenderParticles(screen *ebiten.Image) { col := color.RGBA{p.Color.R, p.Color.G, p.Color.B, alpha} // Position relativ zur Kamera und mit Y-Transformation - screenX := float32(p.X - g.camX) + screenX := float32((p.X - g.camX) * GetScaleFromHeight(canvasH)) screenY := float32(WorldToScreenYWithHeight(p.Y, canvasH)) // Partikel als Kreis zeichnen