bg color fix
This commit is contained in:
@@ -341,7 +341,6 @@ local State = {
|
|||||||
-- Inventory Module
|
-- Inventory Module
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
function InventoryState.draw()
|
function InventoryState.draw()
|
||||||
cls(Config.colors.dark_grey)
|
|
||||||
UI.draw_top_bar("Inventory")
|
UI.draw_top_bar("Inventory")
|
||||||
|
|
||||||
if #State.inventory == 0 then
|
if #State.inventory == 0 then
|
||||||
@@ -595,7 +594,6 @@ end
|
|||||||
-- Splash Module
|
-- Splash Module
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
function SplashState.draw()
|
function SplashState.draw()
|
||||||
cls(Config.colors.dark_grey)
|
|
||||||
print("Mr. Anderson's", 78, 60, Config.colors.green)
|
print("Mr. Anderson's", 78, 60, Config.colors.green)
|
||||||
print("Addventure", 90, 70, Config.colors.green)
|
print("Addventure", 90, 70, Config.colors.green)
|
||||||
end
|
end
|
||||||
@@ -611,7 +609,6 @@ end
|
|||||||
-- Intro Module
|
-- Intro Module
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
function IntroState.draw()
|
function IntroState.draw()
|
||||||
cls(Config.colors.dark_grey)
|
|
||||||
local x = (Config.screen.width - 132) / 2 -- Centered text
|
local x = (Config.screen.width - 132) / 2 -- Centered text
|
||||||
print(State.intro.text, x, State.intro.y, Config.colors.green)
|
print(State.intro.text, x, State.intro.y, Config.colors.green)
|
||||||
end
|
end
|
||||||
@@ -640,7 +637,6 @@ end
|
|||||||
-- Menu Module
|
-- Menu Module
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
function MenuState.draw()
|
function MenuState.draw()
|
||||||
cls(Config.colors.dark_grey)
|
|
||||||
UI.draw_top_bar("Main Menu")
|
UI.draw_top_bar("Main Menu")
|
||||||
UI.draw_menu(State.menu_items, State.selected_menu_item, 108, 70)
|
UI.draw_menu(State.menu_items, State.selected_menu_item, 108, 70)
|
||||||
end
|
end
|
||||||
@@ -662,7 +658,6 @@ end
|
|||||||
function GameState.draw()
|
function GameState.draw()
|
||||||
local currentScreenData = State.screens[State.current_screen]
|
local currentScreenData = State.screens[State.current_screen]
|
||||||
|
|
||||||
cls(Config.colors.dark_grey)
|
|
||||||
UI.draw_top_bar(currentScreenData.name)
|
UI.draw_top_bar(currentScreenData.name)
|
||||||
|
|
||||||
-- Draw platforms
|
-- Draw platforms
|
||||||
@@ -914,6 +909,7 @@ local STATE_HANDLERS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function TIC()
|
function TIC()
|
||||||
|
cls(Config.colors.black)
|
||||||
local handler = STATE_HANDLERS[State.game_state]
|
local handler = STATE_HANDLERS[State.game_state]
|
||||||
if handler then
|
if handler then
|
||||||
handler()
|
handler()
|
||||||
|
|||||||
Reference in New Issue
Block a user