Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Perrelli9338 committed Oct 14, 2024
1 parent 470d3d5 commit a90f3b1
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/resources/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use bevy_embedded_assets::EmbeddedAssetPlugin;
use crate::{
resources::assets::{FontAssets, TextureAssets},
components::{timer::GameTimer, uncover::Uncover},
resources::assets::{FontAssets, TextureAssets},
AppState,
};
use bevy::{
Expand All @@ -15,6 +14,7 @@ use bevy_asset_loader::{
loading_state::{LoadingState, LoadingStateAppExt},
prelude::ConfigureLoadingState,
};
use bevy_embedded_assets::EmbeddedAssetPlugin;
use std::collections::{HashMap, HashSet};

pub(crate) mod assets;
Expand All @@ -25,19 +25,12 @@ impl Plugin for ResourcePlugin {
fn build(&self, app: &mut App) {
app.add_plugins(EmbeddedAssetPlugin::default())
.add_loading_state(
LoadingState::new(AppState::Loading)
.continue_to_state(AppState::Menu)
.load_collection::<FontAssets>()
.load_collection::<TextureAssets>(),
)
.init_state::<GameState>();
/*embedded_asset!(app, "../../assets/pixeled.ttf");
embedded_asset!(app, "../../assets/textures/bomb.png");
embedded_asset!(app, "../../assets/textures/flag.png");
embedded_asset!(app, "../../assets/textures/icon.png");
embedded_asset!(app, "../../assets/textures/tile_covered.png");
embedded_asset!(app, "../../assets/textures/tile_uncovered.png");
embedded_asset!(app, "../../assets/textures/wrong.png");*/
LoadingState::new(AppState::Loading)
.continue_to_state(AppState::Menu)
.load_collection::<FontAssets>()
.load_collection::<TextureAssets>(),
)
.init_state::<GameState>();
}
}

Expand Down

0 comments on commit a90f3b1

Please sign in to comment.