aboutsummaryrefslogtreecommitdiff
path: root/src/startscreen.moon
diff options
context:
space:
mode:
Diffstat (limited to 'src/startscreen.moon')
-rw-r--r--src/startscreen.moon12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/startscreen.moon b/src/startscreen.moon
new file mode 100644
index 0000000..9c92758
--- /dev/null
+++ b/src/startscreen.moon
@@ -0,0 +1,12 @@
+--start screen
+
+mod = ...
+
+mod.gen_scene = () ->
+ node = am.group!
+ background = am.translate(0,0) ^ am.scale(1) ^ am.sprite("data/ph_start_screen.png")
+ text = am.translate(0,-100) ^ am.text("Press space to start")
+ node ^ {background, text}
+ node
+
+