1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-28 08:49:30 +00:00

Added gfx.startFrame and gfx.endFrame

This commit is contained in:
Reuh 2015-08-18 15:40:54 +02:00
parent 0e42f25b8b
commit 2584e46816
2 changed files with 19 additions and 5 deletions

View file

@ -14,8 +14,10 @@ while os.run() do
if keys.held.up then y = y - 1 end
if keys.held.down then y = y + 1 end
gfx.rectangle(x, y, 10, 10)
gfx.rectangle(240, 150, 120, 10)
gfx.startFrame()
gfx.rectangle(x, y, 10, 10)
gfx.rectangle(240, 150, 120, 10)
gfx.endFrame()
gfx.render()
end