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

15
src/game.lua Normal file
View file

@ -0,0 +1,15 @@
--[[pod_format="raw",created="2024-04-14 13:41:07",modified="2024-04-14 13:49:10",revision=1]]
include("cirno.lua")
function _init()
cirno_init()
end
function _update()
cirno_update()
end
function _draw()
cls(0)
cirno_draw()
end