Use cls() instead of rectfill() to try and reduce 'black screen' errors.
This commit is contained in:
parent
53896b0f0e
commit
2ca23a7b4e
2 changed files with 2 additions and 2 deletions
2
main.lua
2
main.lua
|
@ -14,7 +14,7 @@ function _update()
|
|||
end
|
||||
|
||||
function _draw()
|
||||
rectfill(0, 0, 127, 127, 0)
|
||||
cls()
|
||||
-- the screen is 128x128 pixels, so it fits 16x16 sprites
|
||||
map(camera_pos_x, camera_pos_y, 0, 0, 16, 16)
|
||||
draw_player()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue