mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 20:20:57 +01:00
fixed drawing bug: cells outside default canvas were not deleted
This commit is contained in:
@@ -632,7 +632,10 @@ func (scene *ScenePlay) Init() {
|
|||||||
scene.Config.Height*scene.Config.Cellsize,
|
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.InitTiles()
|
||||||
scene.InitCache()
|
scene.InitCache()
|
||||||
|
|||||||
Reference in New Issue
Block a user