diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-08-26 08:43:41 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-08-26 08:43:41 +0200 |
| commit | 5b2322b87821428427f19f1db3a243de5085369e (patch) | |
| tree | 5c2273f668680cefd0f7b56392c7442add8f7d3b /main.go | |
feat: Ebitgen installation
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) + } +} |
