From b2f44feb5b2bafa479cf52b692e01056b7ec4292 Mon Sep 17 00:00:00 2001 From: bakpakin Date: Wed, 22 Apr 2015 17:23:45 +0800 Subject: [PATCH] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 31bf20b..f68e7cb 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,9 @@ local tiny = require("tiny") local talkingSystem = tiny.system() talkingSystem.filter = tiny.requireAll("name", "mass", "phrase") -function talkingSystem:update(world, entities, dt) - for p in pairs(entities) do - p.mass = p.mass + dt * 3 - print(p.name .. ", who weighs " .. p.mass .. " pounds, says, \"" .. p.phrase .. "\"") - end +function talkingSystem:process(e, dt) + e.mass = e.mass + dt * 3 + print(e.name .. ", who weighs " .. e.mass .. " pounds, says, \"" .. e.phrase .. "\"") end local joe = {