diff --git a/src/logic/shop/mod.rs b/src/logic/shop/mod.rs index 4a07865..96f44f7 100644 --- a/src/logic/shop/mod.rs +++ b/src/logic/shop/mod.rs @@ -72,8 +72,10 @@ impl Screen for ShopScreen { 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? + + + // 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/resources.rs b/src/resources.rs index 03cd78c..4dfe7c7 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -26,7 +26,11 @@ pub struct GlobalResources { pub jellyfish_animation_attack: FrameAnimationWrapper, // Darkness layer - pub darkness_overlay: Texture2D + pub darkness_overlay: Texture2D, + + // Shop & items + pub shop_background: Texture2D, + } impl GlobalResources { @@ -102,6 +106,10 @@ impl GlobalResources { &thread, &Image::load_image("./assets/img/map/darkness.png")?, )?, + shop_background: raylib.load_texture_from_image( + &thread, + &Image::load_image("./assets/img/map/shopHighRes.png")?, + )?, }) } }