|
|
@ -31,12 +31,12 @@ function update_player() |
|
|
|
if btn(1) then |
|
|
|
player.x += 1 |
|
|
|
end |
|
|
|
if btn(2) then |
|
|
|
player.y -= 1 |
|
|
|
end |
|
|
|
if btn(3) then |
|
|
|
player.y += 1 |
|
|
|
end |
|
|
|
if btn(2) then |
|
|
|
player.y -= 1 |
|
|
|
end |
|
|
|
if btn(3) then |
|
|
|
player.y += 1 |
|
|
|
end |
|
|
|
if (player.y < 0) player.y = 0 |
|
|
|
if (player.y > 127) player.y = 127 |
|
|
|
if (player.x < 0) player.x = 0 |
|
|
@ -83,7 +83,7 @@ function update_drops() |
|
|
|
drop.x -= 1 |
|
|
|
drop.y += 1 |
|
|
|
drop.fall_time = 0 |
|
|
|
elseif drop.x < 127 and |
|
|
|
elseif drop.x < 127 and |
|
|
|
pget(drop.x+1, drop.y+1) == black then |
|
|
|
drop.x += 1 |
|
|
|
drop.y += 1 |
|
|
|