From 2ca23a7b4ebb6d86a476bda65777e41157e1100e Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Wed, 11 Dec 2019 00:38:46 -0500 Subject: [PATCH] Use cls() instead of rectfill() to try and reduce 'black screen' errors. --- debug.lua | 2 +- main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.lua b/debug.lua index ed9ddfb..92d5d32 100644 --- a/debug.lua +++ b/debug.lua @@ -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 diff --git a/main.lua b/main.lua index 6a88cc5..809a3c0 100644 --- a/main.lua +++ b/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()