2020-12-08 23:06:09 +01:00
|
|
|
--
|
|
|
|
-- small demonstrator for Lua binding on pixwerx
|
|
|
|
--
|
|
|
|
|
|
|
|
-- loading our libraries
|
|
|
|
pw.script:load_all()
|
|
|
|
|
|
|
|
print("hello pixwerx!")
|
|
|
|
|
|
|
|
local s = pw.scene.new()
|
|
|
|
|
2020-12-09 00:16:08 +01:00
|
|
|
local e = pw.entity.new(s)
|
|
|
|
|
|
|
|
local e2 = pw.entity.new(s)
|
|
|
|
|
|
|
|
e.add_child(e2)
|
|
|
|
|
|
|
|
print(s)
|
|
|
|
print(e.child_count)
|
|
|
|
|
2020-12-08 23:06:09 +01:00
|
|
|
|