Update version to 0.0.2

Add System addition and removal
Changed implementation for Entity removal
Change README and example code
This commit is contained in:
bakpakin
2015-03-22 12:07:42 +08:00
parent b98cd5a14d
commit 216064d63c
3 changed files with 132 additions and 58 deletions
+8
View File
@@ -83,12 +83,20 @@ assert(e1.xform.x == 21, "e1.xform.x should be 21, but is " .. e1.xform.x)
assert(e2.xform.x == -19, "e2.xform.x should be -19, but is " .. e2.xform.x)
assert(e3.xform.y == 68, "e3.xform.y should be 68, but is " .. e3.xform.y)
world:removeSystems(moves)
world:update(1234567890)
world:addSystems(moves)
world:remove(e3, e2)
world:update(20)
assert(e1.xform.x == 41, "e1.xform.x should be 41, but is " .. e1.xform.x)
assert(e2.xform.x == -19, "e2.xform.x should be -19, but is " .. e2.xform.x)
assert(e3.xform.y == 68, "e3.xform.y should be 68, but is " .. e3.xform.y)
world:removeSystems(moves)
world:update(12345)
world:addSystems(moves)
world:add(e3, e2)
world:update(19)
world:remove(e3, e2)