update docs to account for event system switch
This commit is contained in:
parent
89e3b71ab5
commit
dcc4848989
|
@ -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:
|
||||||
|
|
2
template
2
template
|
@ -1 +1 @@
|
||||||
Subproject commit b34c18da8a0aa811ba2a8abd5ec858930518cbe2
|
Subproject commit 1bc3604f9f0bfa1ba8c2f66fd59c7ec7cf553c7d
|
Loading…
Reference in New Issue