fix view port rendering to include
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m13s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m13s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user