1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|