mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Fixed README.md example
This commit is contained in:
@@ -43,7 +43,7 @@ only Entities that have all required components.
|
||||
```lua
|
||||
local tiny = require("tiny")
|
||||
|
||||
local talkingSystem = tiny.system()
|
||||
local talkingSystem = tiny.processingSystem()
|
||||
talkingSystem.filter = tiny.requireAll("name", "mass", "phrase")
|
||||
function talkingSystem:process(e, dt)
|
||||
e.mass = e.mass + dt * 3
|
||||
|
||||
Reference in New Issue
Block a user