Skip to content

Instantly share code, notes, and snippets.

@swtaarrs
Created July 5, 2022 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swtaarrs/ec25cc7bcb84d6b2728f7f11b188e186 to your computer and use it in GitHub Desktop.
Save swtaarrs/ec25cc7bcb84d6b2728f7f11b188e186 to your computer and use it in GitHub Desktop.
import "CoreLibs/object"
import "CoreLibs/graphics"
local gfx<const> = playdate.graphics
local x, y = 0, 0
local width, height = 20, 20
function playdate.AButtonDown()
x += 10
y += 10
gfx.fillRect(x, y, width, height)
-- playdate.display.flush()
end
playdate.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment