cirnofarm/src/cirno.lua

21 lines
286 B
Lua
Raw Normal View History

2024-04-14 15:51:45 +02:00
function _init()
x = 128
y = 128
hflip = false
playerSpr = 64
end
function _draw()
camera(x - 240, y - 135)
cls(0)
spr(playerSpr,x,y, hflip)
end
function _update()
if (btn(0)) x -= 2 hflip = true
if (btn(1)) x += 2 hflip = false
if (btn(2)) y -= 2
if (btn(3)) y += 2
end