I finally made my first game! Sprite Movement. Its a game where you move around. Even though it might be boring, I'm gonna make more versions! For now, Bye!
P#88905 2021-03-12 23:55 ( Edited 2021-03-13 10:14)
--sprite movement
--by demdem551
-->8
--game loops
function _init()
player={
x=64,
y=64,
}
end
function _update()
if btn(⬆️) then
player.y-=1
end
if btn(⬇️) then
player.y+=1
end
if btn(⬅️) then
player.x-=1
end
if btn(➡️) then
player.x+=1
end
end
function _draw()
cls()
spr(1,player.x,player.y)
end
P#93970 2021-06-24 14:45
[Please log in to post a comment]