summaryrefslogtreecommitdiff
path: root/src/stars_test.moon
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2025-01-09 18:11:46 -0600
committerAlexander M Pickering <alex@cogarr.net>2025-01-09 18:11:46 -0600
commitdecb72f936060a65bff18e9cbf33642ea3a71cd0 (patch)
tree3b07bb1bfc1e4f0e39ec4ff8e0c243cd4fab0d61 /src/stars_test.moon
parent726876d42270f8974fd495be91127ea7585472ff (diff)
downloadggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.tar.gz
ggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.tar.bz2
ggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.zip
Work
Diffstat (limited to 'src/stars_test.moon')
-rw-r--r--src/stars_test.moon25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/stars_test.moon b/src/stars_test.moon
new file mode 100644
index 0000000..2dbdd4e
--- /dev/null
+++ b/src/stars_test.moon
@@ -0,0 +1,25 @@
+shader = require("shaders.stars")
+win = require("window")
+
+node = am.group!
+x = win.left
+y = win.right
+time = math.sin(am.current_time!)
+world_x = am.current_time!
+shader = am.use_program(shader)\append(am.bind({
+ MV: mat4(
+ 1, 0, 0, 0
+ 0, 1, 0, 0
+ 0, 0, 1, 0
+ x, y, 0, 1
+ )
+ thickness: thickness
+ radius: radius
+ index: am.vec2_array(arr)
+ color: color
+ })\append(am.draw("triangles")))
+button = ui.button(10,10,100,100, "Hello,\nworld!")
+joystick = ui.joystick(-100,-100,200)
+--joystick2 = ui.joystick(100,100,150)
+print("Got button:",button)
+node