diff options
Diffstat (limited to 'src/stars_test.moon')
| -rw-r--r-- | src/stars_test.moon | 25 |
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 |
