Log In  

Cart #jotupmubo-0 | 2021-03-12 | Code ▽ | Embed ▽ | No License

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)

nice job! can you paste the code so i can use this in a game?

P#91102 2021-04-25 23:57

--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]