diff --git a/README.md b/README.md index 947c9ac..3db3776 100644 --- a/README.md +++ b/README.md @@ -28,18 +28,18 @@ Then define callbacks with a simple function definition: ```lua local timer = 0 -function uranium.update(dt) +uranium.on('update', function(dt) timer = timer + dt -end +end) ``` And then define the draw order of your actors with simple method calls, similar to DrawFunctions: ```lua -function uranium.update() +uranium.on('update', function() quad:rotationz(t * 50) quad:Draw() -end +end) ``` It comes with an extensive standard library, including common game-development needs like: diff --git a/template b/template index b34c18d..1bc3604 160000 --- a/template +++ b/template @@ -1 +1 @@ -Subproject commit b34c18da8a0aa811ba2a8abd5ec858930518cbe2 +Subproject commit 1bc3604f9f0bfa1ba8c2f66fd59c7ec7cf553c7d