Add attributes to tiny.system. Implement Interval Systems.

This commit is contained in:
bakpakin
2015-06-16 20:28:21 -04:00
parent d35d62ed3c
commit cbfc3d360f
3 changed files with 69 additions and 32 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ describe('tiny-ecs:', function()
local world, entity1, entity2, entity3
local moveSystem = tiny.processingSystem()
local moveSystem = tiny.system({}, {"process"})
moveSystem.filter = tiny.requireAll("xform", "vel")
function moveSystem:process(e, dt)
local xform = e.xform