Draw a rectangle to the screen
authorJC <dev@jacobcasper.com>
Sun, 30 Jul 2023 23:57:39 +0000 (18:57 -0500)
committerJC <dev@jacobcasper.com>
Sun, 30 Jul 2023 23:57:39 +0000 (18:57 -0500)
source/main.lua

index 2c650e1..c5dbbd8 100644 (file)
@@ -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