Rendering a moving square entirely from lua.
Some checks failed
Build Dusk / build-linux (push) Has been cancelled
Build Dusk / build-psp (push) Has been cancelled
Build Dusk / run-tests (push) Has been cancelled

This commit is contained in:
2026-01-28 11:01:07 -06:00
parent 6bdb4ae30d
commit 32b41c98e1
7 changed files with 194 additions and 1 deletions

View File

@@ -1 +1,28 @@
print('Initial scene')
module('spritebatch')
module('time')
x = 0.0
y = 0.0
function sceneDispose()
-- print('Disposing initial scene')
end
function sceneUpdate()
-- print('Updating initial scene')
x = x + TIME.delta * 10.0
y = y + TIME.delta * 10.0
end
function sceneRender()
-- print('Rendering initial scene')
x1 = x + 32
y1 = y + 32
spriteBatchPush(
nil,
x, y,
x1, y1,
nil
)
spriteBatchFlush()
end