mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 12:10:58 +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.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()
|
||||
|
||||
Reference in New Issue
Block a user