mirror of
https://gitlab.com/MaddoScientisto/cirnofarm.git
synced 2026-06-10 23:35:54 +00:00
First commit
This commit is contained in:
commit
3270370941
4 changed files with 117 additions and 0 deletions
21
src/cirno.lua
Normal file
21
src/cirno.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue