main menu

This commit is contained in:
AmadeusWM
2025-04-05 19:13:20 +02:00
parent 988bb741ac
commit f1788fc942
7 changed files with 179 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
use bevy::prelude::*;
use crate::{asset_loading::GltfAssets, GameState};
pub fn map_plugin(app: &mut App) {
// app.add_systems(OnEnter(GameState::Playing), spawn_level);
}
fn spawn_level(
mut commands: Commands,
models: Res<Assets<Gltf>>,
gltf_assets: Res<GltfAssets>) {
let gltf = models.get(&gltf_assets.wall).unwrap();
// commands.spawn(SceneBundle {
// scene: gltf.scenes[0].clone(),
// ..default()
// });
}