From dcc4848989b7bc8c6bee43fcc4c0efec8389d38f Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Thu, 4 May 2023 22:07:17 +0300 Subject: [PATCH] update docs to account for event system switch --- README.md | 8 ++++---- template | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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