Use cls() instead of rectfill() to try and reduce 'black screen' errors.
This commit is contained in:
parent
53896b0f0e
commit
2ca23a7b4e
|
@ -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
|
||||||
|
|
2
main.lua
2
main.lua
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user