mirror of
https://gitlab.com/MaddoScientisto/cirnofarm.git
synced 2026-06-08 14:45:55 +00:00
tweaks
This commit is contained in:
parent
3270370941
commit
c3fa3ab07c
3 changed files with 39 additions and 26 deletions
|
|
@ -1,3 +1,5 @@
|
|||
--[[pod_format="raw",created="2024-04-14 14:05:11",modified="2024-04-14 14:17:48",revision=5]]
|
||||
|
||||
function _init()
|
||||
x = 128
|
||||
y = 128
|
||||
|
|
@ -6,11 +8,23 @@ function _init()
|
|||
end
|
||||
|
||||
function _draw()
|
||||
camera(x - 240, y - 135)
|
||||
cls(0)
|
||||
camera(x - 240, y - 135)
|
||||
|
||||
spr(playerSpr,x,y, hflip)
|
||||
drawMap()
|
||||
|
||||
spr(playerSpr,x,y, hflip)
|
||||
|
||||
spr(playerSpr,x+32,y, hflip)
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
function drawMap()
|
||||
for i=2,1,-1 do
|
||||
map(fetch"map/0.map"[i].bmp)
|
||||
end
|
||||
end
|
||||
|
||||
function _update()
|
||||
|
|
@ -18,4 +32,8 @@ function _update()
|
|||
if (btn(1)) x += 2 hflip = false
|
||||
if (btn(2)) y -= 2
|
||||
if (btn(3)) y += 2
|
||||
end
|
||||
|
||||
function checkCollision(x,y)
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue