Files
gorpg/presenter/engine.go
2023-06-28 17:07:35 +02:00

25 lines
387 B
Go

package presenter
import "github.com/hajimehoshi/ebiten"
const (
screenWidth = 320
screenHeight = 240
)
type GameEngine struct {
keys []ebiten.Key
}
func (g *GameEngine) Update(*ebiten.Image) error {
return nil
}
func (g *GameEngine) Draw(screen *ebiten.Image) {
}
func (g *GameEngine) Layout(outsideWidth, outsideHeight int) (int, int) {
return screenWidth, screenHeight
}