projects
/
life-pd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77772b8
)
Draw a rectangle to the screen
author
JC
<dev@jacobcasper.com>
Sun, 30 Jul 2023 23:57:39 +0000
(18:57 -0500)
committer
JC
<dev@jacobcasper.com>
Sun, 30 Jul 2023 23:57:39 +0000
(18:57 -0500)
source/main.lua
patch
|
blob
|
blame
|
history
diff --git
a/source/main.lua
b/source/main.lua
index
2c650e1
..
c5dbbd8
100644
(file)
--- a/
source/main.lua
+++ b/
source/main.lua
@@
-1,4
+1,11
@@
+local pd <const> = playdate
+local gfx <const> = playdate.graphics
+
+local r = pd.geometry.rect.new(0, 0, 32, 32)
+
+
function playdate.update()
+ gfx.drawRect(r)
if playdate.buttonJustPressed("a") then
playdate.display.setInverted(not playdate.display.getInverted())
end