Refactored and simplified lua stuff a lot.
Some checks failed
Build Dusk / run-tests (push) Failing after 1m23s
Build Dusk / build-linux (push) Failing after 1m47s
Build Dusk / build-psp (push) Failing after 1m41s

This commit is contained in:
2026-02-01 21:28:21 -06:00
parent 78e1ae885a
commit 053778a502
53 changed files with 638 additions and 804 deletions

View File

@@ -1,21 +1,17 @@
module('spritebatch')
module('time')
-- module('time')
module('camera')
module('glm')
-- module('glm')
module('color')
camera = cameraCreate(CAMERA_PROJECTION_TYPE_PERSPECTIVE)
color = colorBlue()
function sceneDispose()
-- print('Disposing initial scene')
end
function sceneUpdate()
color.r = 255 * (math.sin(TIME.time) + 1) * 0.5
color.g = 255 * (math.sin(TIME.time + 2) + 1) * 0.5
color.b = 255 * (math.sin(TIME.time + 4) + 1) * 0.5
end
function sceneRender()
@@ -25,7 +21,7 @@ function sceneRender()
nil,
0, 0,
1, 2,
color
colorBlue()
)
spriteBatchFlush()