aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)
+ }
+}