poking around the scenegraph pattern implemented with EnTT

This commit is contained in:
Hartmut Seichter 2020-12-09 00:16:08 +01:00
parent cea83d06e8
commit 1f390f5a4d
5 changed files with 86 additions and 27 deletions

View file

@ -9,4 +9,13 @@ print("hello pixwerx!")
local s = pw.scene.new()
local e = pw.entity.new(s)
local e2 = pw.entity.new(s)
e.add_child(e2)
print(s)
print(e.child_count)