fixed drawing bug: cells outside default canvas were not deleted

This commit is contained in:
2024-06-02 19:28:56 +02:00
committed by T.v.Dein
parent cb87815e4f
commit 47f3693f77

View File

@@ -632,7 +632,10 @@ func (scene *ScenePlay) Init() {
scene.Config.Height*scene.Config.Cellsize,
)
scene.Cache = ebiten.NewImage(scene.Config.ScreenWidth, scene.Config.ScreenHeight)
scene.Cache = ebiten.NewImage(
scene.Config.Width*scene.Config.Cellsize,
scene.Config.Height*scene.Config.Cellsize,
)
scene.InitTiles()
scene.InitCache()