You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luajit.add_function("add", func(a, b): return a + b)
21
+
22
+
luajit.run("""
23
+
print(test(1))
24
+
print(add(333, 666))
25
+
function fib(n, acc, prev)
26
+
if (n < 1) then
27
+
return acc
28
+
else
29
+
return fib(n - 1, prev + acc, acc)
30
+
end
31
+
end
32
+
print("The 500th fibonacci number is " .. fib(500, 0, 1))
33
+
""")
34
+
```
35
+
36
+
## Godot Sandbox Programs
37
+
38
+
There is [a repository with pre-made programs](https://github.com/libriscv/godot-sandbox-programs).
39
+
40
+
You can find [the latest release here](https://github.com/libriscv/godot-sandbox-programs/releases/latest). The latest release is used by `Sandbox.download_program(name)`.
0 commit comments