Use cls() instead of rectfill() to try and reduce 'black screen' errors.

This commit is contained in:
Anna Rose 2019-12-11 00:38:46 -05:00
parent 53896b0f0e
commit 2ca23a7b4e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ function debug_t(mode)
debug_map = not debug_map debug_map = not debug_map
elseif mode == "sfx" then elseif mode == "sfx" then
debug_sfx = not debug_sfx debug_sfx = not debug_sfx
elseif mode == "" then elseif mode == "mod" then
debug_mod_buffer = not debug_mod_buffer debug_mod_buffer = not debug_mod_buffer
end end
end end

View File

@ -14,7 +14,7 @@ function _update()
end end
function _draw() function _draw()
rectfill(0, 0, 127, 127, 0) cls()
-- the screen is 128x128 pixels, so it fits 16x16 sprites -- the screen is 128x128 pixels, so it fits 16x16 sprites
map(camera_pos_x, camera_pos_y, 0, 0, 16, 16) map(camera_pos_x, camera_pos_y, 0, 0, 16, 16)
draw_player() draw_player()