update docs to account for event system switch

This commit is contained in:
Jill 2023-05-04 22:07:17 +03:00
parent 89e3b71ab5
commit dcc4848989
Signed by: oat
GPG Key ID: 33489AA58A955108
2 changed files with 5 additions and 5 deletions

View File

@ -28,18 +28,18 @@ Then define callbacks with a simple function definition:
```lua ```lua
local timer = 0 local timer = 0
function uranium.update(dt) uranium.on('update', function(dt)
timer = timer + dt timer = timer + dt
end end)
``` ```
And then define the draw order of your actors with simple method calls, similar to DrawFunctions: And then define the draw order of your actors with simple method calls, similar to DrawFunctions:
```lua ```lua
function uranium.update() uranium.on('update', function()
quad:rotationz(t * 50) quad:rotationz(t * 50)
quad:Draw() quad:Draw()
end end)
``` ```
It comes with an extensive standard library, including common game-development needs like: It comes with an extensive standard library, including common game-development needs like:

@ -1 +1 @@
Subproject commit b34c18da8a0aa811ba2a8abd5ec858930518cbe2 Subproject commit 1bc3604f9f0bfa1ba8c2f66fd59c7ec7cf553c7d