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 12:55:33 +01:00
|
|
|
e = pw.entity.new(s)
|
|
|
|
e2 = pw.entity.new(s)
|
2020-12-09 00:16:08 +01:00
|
|
|
|
2020-12-09 12:55:33 +01:00
|
|
|
print(e)
|
|
|
|
e2.add_child(e)
|
2020-12-09 00:16:08 +01:00
|
|
|
|
2020-12-09 12:55:33 +01:00
|
|
|
-- print(s)
|
|
|
|
-- print(e2.child_count)
|
2020-12-09 00:16:08 +01:00
|
|
|
|
2020-12-08 23:06:09 +01:00
|
|
|
|