revert back to sol2
This commit is contained in:
parent
ce8e89af51
commit
f3c17f6d03
16 changed files with 184 additions and 118 deletions
|
@ -2,20 +2,26 @@
|
|||
-- small demonstrator for Lua binding on pixwerx
|
||||
--
|
||||
|
||||
-- loading our libraries
|
||||
pw.script:load_all()
|
||||
|
||||
print("hello pixwerx!")
|
||||
|
||||
local s = pw.scene.new()
|
||||
|
||||
e = pw.entity.new(s)
|
||||
e2 = pw.entity.new(s)
|
||||
print(s)
|
||||
|
||||
local e = pw.entity.new(s)
|
||||
c = pw.entity.new(s)
|
||||
|
||||
print(e)
|
||||
e2.add_child(e)
|
||||
print(e.child_count)
|
||||
|
||||
-- print(s)
|
||||
-- print(e2.child_count)
|
||||
-- add child
|
||||
e.add_child(c)
|
||||
|
||||
|
||||
print(e.child_count)
|
||||
|
||||
print("bye, bye pixwerx!")
|
||||
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue