mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-18 13:01:12 +01:00
toggle directly in scene's Draw, but fails too
This commit is contained in:
7
game.go
7
game.go
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
@@ -51,9 +53,6 @@ func (game *Game) Update() error {
|
||||
scene := game.GetCurrentScene()
|
||||
scene.Update()
|
||||
|
||||
// FIXME: should work, but doesn't
|
||||
//ebiten.SetScreenClearedEveryFrame(scene.Clearscreen())
|
||||
|
||||
next := scene.GetNext()
|
||||
|
||||
if next != game.CurrentScene {
|
||||
@@ -64,7 +63,7 @@ func (game *Game) Update() error {
|
||||
game.CurrentScene = next
|
||||
}
|
||||
|
||||
//fmt.Printf("Clear Screen: %t\n", ebiten.IsScreenClearedEveryFrame())
|
||||
fmt.Printf("Clear Screen: %t\n", ebiten.IsScreenClearedEveryFrame())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user