Files
dusk/assets/scene/initial.lua
Dominic Masters 32b41c98e1
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
Rendering a moving square entirely from lua.
2026-01-28 11:01:07 -06:00

28 lines
418 B
Lua

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