27 lines
308 B
Lua
27 lines
308 B
Lua
--
|
|
-- small demonstrator for Lua binding on pixwerx
|
|
--
|
|
|
|
pw.script:load_all()
|
|
|
|
print("hello pixwerx!")
|
|
|
|
local s = pw.scene.new()
|
|
|
|
print(s)
|
|
|
|
local e = pw.entity.new(s)
|
|
c = pw.entity.new(s)
|
|
|
|
print(e)
|
|
print(e.child_count)
|
|
|
|
-- add child
|
|
e.add_child(c)
|
|
|
|
|
|
print(e.child_count)
|
|
|
|
print("bye, bye pixwerx!")
|
|
|
|
return 1
|