bakpakin / tiny-ecs

ECS for Lua
http://bakpakin.github.io/tiny-ecs/doc/
MIT License
675 stars 61 forks source link

README example error #24

Closed yangruihan closed 3 years ago

yangruihan commented 3 years ago
...

function talkingSystem:process(e, dt)
    e.mass = e.mass + dt * 3
    print(("%s who weighs %d pounds, says %q."):format(e.name, e.mass, e.phrase)
end

...

print(("%s who weighs %d pounds, says %q."):format(e.name, e.mass, e.phrase) missing right parentheses.

yangruihan commented 3 years ago

fix with pull request https://github.com/bakpakin/tiny-ecs/pull/25.