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
|
@ -16,7 +16,7 @@ function debug_t(mode)
|
|||
debug_map = not debug_map
|
||||
elseif mode == "sfx" then
|
||||
debug_sfx = not debug_sfx
|
||||
elseif mode == "" then
|
||||
elseif mode == "mod" then
|
||||
debug_mod_buffer = not debug_mod_buffer
|
||||
end
|
||||
end
|
||||
|
|
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