Skip to content

Commit c475d74

Browse files
committed
fixup
1 parent 84f84a8 commit c475d74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/game/src/app.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
game_logic::{dino_touched_tree, reset_game},
44
setup_camera, setup_dino, setup_game_control, setup_ground, setup_tree,
55
test_functions::{CaptureFramePlugin, ImageCopyPlugin},
6-
tree_move_animation, update_ground, user_control, GameStatus,
6+
tree_move_animation, update_ground, user_control, GameStatus, SpeedControlInfo,
77
};
88
use bevy::{
99
app::PluginGroupBuilder,
@@ -66,6 +66,10 @@ impl Game {
6666
.add_plugins((default_plugins(app_type), fps_plugin()))
6767
.insert_resource(GameStatus { speed: 5, score: 0 })
6868
.insert_resource(ClearColor(Color::srgb(1.0, 1.0, 1.0)))
69+
.insert_resource(SpeedControlInfo {
70+
speed_increment: 100,
71+
max_game_speed: u64::MAX,
72+
})
6973
.add_systems(
7074
Startup,
7175
(

0 commit comments

Comments
 (0)