aboutsummaryrefslogtreecommitdiff
path: root/src/startscreen.moon
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-02-02 08:11:08 -0500
committerAlexander Pickering <alex@cogarr.net>2020-02-02 08:11:08 -0500
commit57701059b1b65fc08366318e92d32d9dd7094d25 (patch)
treea569db68d27982d83fead3cc9c8192056c49509f /src/startscreen.moon
downloaddrydock-57701059b1b65fc08366318e92d32d9dd7094d25.tar.gz
drydock-57701059b1b65fc08366318e92d32d9dd7094d25.tar.bz2
drydock-57701059b1b65fc08366318e92d32d9dd7094d25.zip
inital commit
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
+
+