mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-10-12 19:44:17 +00:00
Fixed README.md example
This commit is contained in:
parent
f53db5ddb6
commit
39adae204b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user