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:
parent
0e42f25b8b
commit
2584e46816
2 changed files with 19 additions and 5 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue