6 lines
142 B
Rust
6 lines
142 B
Rust
use macroquad::window::{screen_height, screen_width};
|
|
|
|
pub fn window_width() -> f32 {
|
|
(screen_width() * 0.8).min(screen_height() * 0.5)
|
|
}
|