-
-
Save swtaarrs/ec25cc7bcb84d6b2728f7f11b188e186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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