Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ winit = "0.28.4"
image = "0.24.6"
thiserror = { workspace = true }
leafwing-input-manager = { workspace = true }
bevy_screen_diagnostics = "0.4.0"

thetawave_interface = { path = "crates/thetawave_interface" }

Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use bevy::{asset::AssetPlugin, pbr::AmbientLight, prelude::*};
use bevy_kira_audio::prelude::*;

use bevy_rapier2d::prelude::*;
use bevy_screen_diagnostics::{ScreenDiagnosticsPlugin, ScreenFrameDiagnosticsPlugin};
use options::{generate_config_files, GameInitCLIOptions};
use thetawave_interface::states::{AppStates, GameStates};

Expand Down Expand Up @@ -140,6 +141,8 @@ fn build_app<P1: PluginGroup, P2: PluginGroup>(base_plugins: P1, game_plugins: P
.add_state::<GameStates>(); // start the game in playing state
app.add_plugins(base_plugins);
app.add_plugins(game_plugins);
app.add_plugins(ScreenDiagnosticsPlugin::default());
app.add_plugins(ScreenFrameDiagnosticsPlugin);
app.insert_resource(ClearColor(Color::BLACK))
.insert_resource(AmbientLight {
color: Color::WHITE,
Expand Down