From b0a8869805305b622222a301a07555a88de6dcf3 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 24 Apr 2021 13:31:34 -0400 Subject: [PATCH] Add credits to the pause menu --- src/logic/pausemenu.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/logic/pausemenu.rs b/src/logic/pausemenu.rs index 64daf35..30c91f4 100644 --- a/src/logic/pausemenu.rs +++ b/src/logic/pausemenu.rs @@ -7,7 +7,7 @@ use crate::{ use super::screen::Screen; -const SCREEN_PANEL_SIZE: Vector2 = Vector2 { x: 300.0, y: 300.0 }; +const SCREEN_PANEL_SIZE: Vector2 = Vector2 { x: 300.0, y: 380.0 }; pub struct PauseMenuScreen {} @@ -118,6 +118,15 @@ impl Screen for PauseMenuScreen { } } + // Render credits + draw_handle.draw_text( + "Credits:\n\t- @ewpratten\n\t- @rsninja722\n\t- @wm-c\n\t- @catarinaburghi", + (win_width / 2) - (SCREEN_PANEL_SIZE.x as i32 / 2) + 10, + (win_height / 2) - (SCREEN_PANEL_SIZE.y as i32 / 2) + 120, + 20, + Color::BLACK, + ); + // Close and quit buttons let bottom_left_button_dimensions = Rectangle { x: (win_width as f32 / 2.0) - (SCREEN_PANEL_SIZE.x / 2.0) + 5.0,