Update README.md

This commit is contained in:
Marcus 2025-06-13 01:06:33 +02:00 committed by GitHub
parent a9cde98508
commit 0cb994db0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,4 +46,15 @@ end
-- "alice"
-- bob is the child of alice
-- sara is the child of alice
local Position = world:component()
local Velocity = world:component()
local function things_move(world, dt)
for e, p, v in world:query(Position, Velocity) do
world:set(e, Position, p + v * dt)
end
end
things_move(world, 1/60)
```