aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-08-26 08:43:41 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-08-26 08:43:41 +0200
commit5b2322b87821428427f19f1db3a243de5085369e (patch)
tree5c2273f668680cefd0f7b56392c7442add8f7d3b /main.go
feat: Ebitgen installation
Diffstat (limited to 'main.go')
-rw-r--r--main.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..3da993f
--- /dev/null
+++ b/main.go
@@ -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)
+ }
+}