diff --git a/src/main.rs b/src/main.rs index 132552e..048e5f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,6 +98,14 @@ impl Game { fn draw(&mut self, d: &mut RaylibDrawHandle) { d.clear_background(BG_DARK); + d.draw_text( + concat!("Marble Machinations v", env!("CARGO_PKG_VERSION")), + d.get_screen_width() - 275, + d.get_screen_height() - 20, + 20, + Color::GRAY, + ); + let level_list_width = (d.get_screen_width() / 3).min(400); let screen_height = d.get_screen_height(); d.draw_rectangle(0, 0, level_list_width, screen_height, BG_MEDIUM); @@ -226,7 +234,7 @@ impl Game { &mut self.editing_solution_name, 24, true, - ){ + ) { solution.save(); } let id_text = format!("{}", solution.id());