From: JC Date: Sun, 30 Jul 2023 23:57:39 +0000 (-0500) Subject: Draw a rectangle to the screen X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=4e00ffe2bb6e81829b642a92ffcc8eb31ef1f641;p=life-pd.git Draw a rectangle to the screen --- diff --git a/source/main.lua b/source/main.lua index 2c650e1..c5dbbd8 100644 --- a/source/main.lua +++ b/source/main.lua @@ -1,4 +1,11 @@ +local pd = playdate +local gfx = 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