We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3163e0c commit f9d543bCopy full SHA for f9d543b
crates/game/src/app.rs
@@ -68,7 +68,12 @@ impl Game {
68
let mut game = Game { app: App::new() };
69
game.app
70
.add_plugins((default_plugins(app_type), fps_plugin()))
71
- .insert_resource(GameStatus { speed: 5, score: 0 })
+ .insert_resource(GameStatus {
72
+ speed: 5,
73
+ score: 0,
74
+ window_width: 1920,
75
+ window_height: 1080,
76
+ })
77
.insert_resource(ClearColor(Color::srgb(1.0, 1.0, 1.0)))
78
.insert_resource(SpeedControlInfo {
79
speed_increment: 100,
crates/game/src/resources.rs
@@ -4,6 +4,8 @@ use bevy::prelude::*;
4
pub struct GameStatus {
5
pub score: u64,
6
pub speed: u64,
7
+ pub window_width: u32,
8
+ pub window_height: u32,
9
}
10
11
#[derive(Debug, Default, Resource)]
0 commit comments