diff --git a/src/logic/gameend.rs b/src/logic/gameend.rs index 0d2fc08..eeb7136 100644 --- a/src/logic/gameend.rs +++ b/src/logic/gameend.rs @@ -26,8 +26,11 @@ impl Screen for GameEndScreen { game_core: &mut GameCore, ) -> Option { let mouse_position = draw_handle.get_mouse_position(); - draw_handle.clear_background(Color::GRAY); - // TODO: Maybe we can stick some art here? + // draw_handle.clear_background(Color::GRAY); + // // TODO: Maybe we can stick some art here? + + // Render the background + draw_handle.draw_texture(&game_core.resources.shop_background, 0, 0, Color::WHITE); // Window dimensions let win_height = draw_handle.get_screen_height(); diff --git a/src/logic/mainmenu.rs b/src/logic/mainmenu.rs index 3dc3f90..6ea0d94 100644 --- a/src/logic/mainmenu.rs +++ b/src/logic/mainmenu.rs @@ -28,8 +28,10 @@ impl Screen for MainMenuScreen { let win_height = draw_handle.get_screen_height(); let win_width = draw_handle.get_screen_width(); - // Clear frame - draw_handle.clear_background(Color::BLUE); + // // Clear frame + // draw_handle.clear_background(Color::BLUE); + // Render the background + draw_handle.draw_texture(&game_core.resources.shop_background, 0, 0, Color::WHITE); // Render title draw_handle.draw_text( @@ -56,7 +58,7 @@ impl Screen for MainMenuScreen { (win_width / 4), 60, match hovering_play_button { - true => Color::GREEN, + true => Color::BLUE, false => Color::BLACK, }, ); @@ -66,7 +68,7 @@ impl Screen for MainMenuScreen { (win_width / 4) + 100, 60, match hovering_shop_button { - true => Color::GREEN, + true => Color::BLUE, false => Color::BLACK, }, ); @@ -76,7 +78,7 @@ impl Screen for MainMenuScreen { (win_width / 4) + 200, 60, match hovering_quit_button { - true => Color::GREEN, + true => Color::RED, false => Color::BLACK, }, );