From 0cb994db0dd53fb8286e54ef1ae0cb668e085fb1 Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 13 Jun 2025 01:06:33 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5712121..440ff93 100644 --- a/README.md +++ b/README.md @@ -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) ```