Fixed README.md example

This commit is contained in:
bakpakin 2015-04-25 18:36:59 +08:00
parent f53db5ddb6
commit 39adae204b

View File

@ -43,7 +43,7 @@ only Entities that have all required components.
```lua ```lua
local tiny = require("tiny") local tiny = require("tiny")
local talkingSystem = tiny.system() local talkingSystem = tiny.processingSystem()
talkingSystem.filter = tiny.requireAll("name", "mass", "phrase") talkingSystem.filter = tiny.requireAll("name", "mass", "phrase")
function talkingSystem:process(e, dt) function talkingSystem:process(e, dt)
e.mass = e.mass + dt * 3 e.mass = e.mass + dt * 3