mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 00:39:30 +00:00
Added some sleep mode related functions, fixed the example, fixed some things
This commit is contained in:
parent
b4ceb200ea
commit
5494f3d2e5
5 changed files with 34 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ local angle = 0
|
|||
|
||||
local texture1 = gfx.texture.load(ctr.root.."icon.png");
|
||||
if not texture1 then error("Giants ducks came from another planet") end
|
||||
local tWidth, tHeight = texture1:getSize()
|
||||
|
||||
gfx.color.setBackground(gfx.color.RGBA8(200, 200, 200))
|
||||
gfx.set3D(true)
|
||||
|
|
@ -66,7 +67,7 @@ while ctr.run() do
|
|||
gfx.text(5, 17, "Hello world, from Lua ! éàçù", 20, gfx.color.RGBA8(0, 0, 0))
|
||||
gfx.text(5, 50, "Time: "..os.date())
|
||||
|
||||
texture1:draw(280, 80, angle);
|
||||
texture1:draw(280, 80, angle, tWidth/2, tHeight/2);
|
||||
|
||||
local cx, cy = hid.circle()
|
||||
gfx.rectangle(40, 90, 60, 60, 0, 0xDDDDDDFF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue