First commit

This commit is contained in:
MaddoScientisto 2024-04-14 15:51:45 +02:00
commit 3270370941
4 changed files with 117 additions and 0 deletions

21
src/cirno.lua Normal file
View file

@ -0,0 +1,21 @@
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