-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.lua
More file actions
42 lines (40 loc) · 726 Bytes
/
Copy pathscript.lua
File metadata and controls
42 lines (40 loc) · 726 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
config = {
window_title = "SDL3 Lua Node Editor",
window_width = 800,
window_height = 600,
font_path = "Kenney Mini.ttf",
font_size = 24,
text = "Two Node2D Test",
camera = {
x = 0,
y = 0,
scale = 1.0
}
}
nodes = {
{
x = 255,
y = 225,
size = 100,
r = 1.0,
g = 0.0,
b = 0.0,
text = "Node 1",
inputs = 1,
outputs = 1
},
{
x = 586,
y = 337,
size = 80,
r = 0.0,
g = 0.0,
b = 1.0,
text = "Node 2",
inputs = 1,
outputs = 1
}
}
connections = {
-- Example: { from_node=1, from_output=1, to_node=2, to_input=1 }
}