diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +package main + +import "github.com/hajimehoshi/ebiten/v2" + +type Game struct{} + +func (g *Game) Update() error { + return nil +} + +func (g *Game) Draw(screen *ebiten.Image) { +} + +func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) { + return 320, 240 +} + +func main() { + ebiten.SetWindowSize(640, 480) + ebiten.SetWindowTitle("Age of Empire") + if err := ebiten.RunGame(&Game{}); err != nil { + panic(err) + } +} |
