fix game
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m56s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m56s
This commit is contained in:
@@ -52,4 +52,7 @@ func (g *Game) loadAssets() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("🖼️ Bilder (Native): %d geladen, %d fehlgeschlagen\n", loadedImages, failedImages)
|
fmt.Printf("🖼️ Bilder (Native): %d geladen, %d fehlgeschlagen\n", loadedImages, failedImages)
|
||||||
|
|
||||||
|
// Alle Sprites in eine Atlas-Textur packen → ein GPU-Draw-Call statt vieler
|
||||||
|
g.assetsImages = buildAtlas(g.assetsImages, g.world.Manifest)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,4 +50,7 @@ func (g *Game) loadAssets() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("🖼️ Bilder (WASM): %d geladen, %d fehlgeschlagen\n", loadedImages, failedImages)
|
fmt.Printf("🖼️ Bilder (WASM): %d geladen, %d fehlgeschlagen\n", loadedImages, failedImages)
|
||||||
|
|
||||||
|
// Alle Sprites in eine Atlas-Textur packen → ein GPU-Draw-Call statt vieler
|
||||||
|
g.assetsImages = buildAtlas(g.assetsImages, g.world.Manifest)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user