add third sprite for walking
This commit is contained in:
parent
5af132415e
commit
fd7ccea172
18
borb.p8
18
borb.p8
@ -58,7 +58,7 @@ function update_player()
|
|||||||
player.vy = 0
|
player.vy = 0
|
||||||
player.jumping = false
|
player.jumping = false
|
||||||
end
|
end
|
||||||
player.spr = (player.moves / 2) % 2
|
player.spr = (player.moves / 3) % 3
|
||||||
if (player.x < 0) player.x = 0
|
if (player.x < 0) player.x = 0
|
||||||
if (player.x > 120) player.x = 120
|
if (player.x > 120) player.x = 120
|
||||||
end
|
end
|
||||||
@ -91,14 +91,14 @@ function print_ctr(s,y,c)
|
|||||||
print(s,64 - #s * 2,y,c)
|
print(s,64 - #s * 2,y,c)
|
||||||
end
|
end
|
||||||
__gfx__
|
__gfx__
|
||||||
ffff00ffffff00ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
ffff00ffffff00ffffff00ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
fff0880ffff0880f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
fff0880ffff0880ffff0880f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
ffff800fffff800f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
ffff800fffff800fffff800f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
fff08008000080080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
fff0800800008008fff0800800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
ff08888ff888888f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
ff08888ff888888fff08888f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
f088888fff88888f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
f088888fff88888ff088888f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
088888fffff888ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
088888fffff888ff088888ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
fff4f4fffff4f4ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
fff4f4fffff4f4ffff4f4fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
Loading…
Reference in New Issue
Block a user