From decb72f936060a65bff18e9cbf33642ea3a71cd0 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 9 Jan 2025 18:11:46 -0600 Subject: Work --- src/stars_test.moon | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/stars_test.moon (limited to 'src/stars_test.moon') 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 -- cgit v1.2.3-70-g09d2