game engine
This commit is contained in:
24
presenter/engine.go
Normal file
24
presenter/engine.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user