show version in corner of level list
This commit is contained in:
parent
15f6cc70d4
commit
79fe26414b
1 changed files with 9 additions and 1 deletions
|
@ -98,6 +98,14 @@ impl Game {
|
||||||
fn draw(&mut self, d: &mut RaylibDrawHandle) {
|
fn draw(&mut self, d: &mut RaylibDrawHandle) {
|
||||||
d.clear_background(BG_DARK);
|
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 level_list_width = (d.get_screen_width() / 3).min(400);
|
||||||
let screen_height = d.get_screen_height();
|
let screen_height = d.get_screen_height();
|
||||||
d.draw_rectangle(0, 0, level_list_width, screen_height, BG_MEDIUM);
|
d.draw_rectangle(0, 0, level_list_width, screen_height, BG_MEDIUM);
|
||||||
|
|
Loading…
Reference in a new issue