diff options
Diffstat (limited to 'src/main.lua')
| -rw-r--r-- | src/main.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.lua b/src/main.lua index e69de29..176cddc 100644 --- a/src/main.lua +++ b/src/main.lua @@ -0,0 +1,14 @@ + +print("Hello, world!") + +am.eval_js("console.log('Hello, js!')") + +local win = am.window{ + title = "Hi", + width = 1280, + height = 720, + clear_color = vec4(0.8, 0.8, 0.3, 1) +} +print("about to pcall") +local a,b = pcall(am.eval_js, require("js_bridge")) +print("done with pcall", a,b) |
