Skip to content

Commit f9d543b

Browse files
committed
fixup
1 parent 3163e0c commit f9d543b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

crates/game/src/app.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ impl Game {
6868
let mut game = Game { app: App::new() };
6969
game.app
7070
.add_plugins((default_plugins(app_type), fps_plugin()))
71-
.insert_resource(GameStatus { speed: 5, score: 0 })
71+
.insert_resource(GameStatus {
72+
speed: 5,
73+
score: 0,
74+
window_width: 1920,
75+
window_height: 1080,
76+
})
7277
.insert_resource(ClearColor(Color::srgb(1.0, 1.0, 1.0)))
7378
.insert_resource(SpeedControlInfo {
7479
speed_increment: 100,

crates/game/src/resources.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use bevy::prelude::*;
44
pub struct GameStatus {
55
pub score: u64,
66
pub speed: u64,
7+
pub window_width: u32,
8+
pub window_height: u32,
79
}
810

911
#[derive(Debug, Default, Resource)]

0 commit comments

Comments
 (0)