pickup hanlder

This commit is contained in:
LorrensP-2158466
2025-04-06 15:08:25 +02:00
parent c7ed475278
commit 4bd1f1343e
9 changed files with 216 additions and 139 deletions

View File

@@ -1,15 +1,15 @@
use asset_loading::ImageAssets;
use bevy::{prelude::*};
use bevy::prelude::*;
use bevy_rapier3d::prelude::*;
mod asset_loading;
mod bevy_plugin;
mod debugging;
mod interaction;
mod level_instantiation;
mod main_menu;
mod player;
mod util;
mod debugging;
fn main() {
App::new()
@@ -22,7 +22,7 @@ fn main() {
RapierPhysicsPlugin::<NoUserData>::default(),
RapierDebugRenderPlugin::default(),
player::plugin,
debugging::plugin
debugging::plugin,
))
.init_state::<GameState>()
.add_systems(OnEnter(GameState::Playing), setup)
@@ -44,7 +44,7 @@ fn setup(
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
image: Res<ImageAssets>
image: Res<ImageAssets>,
) {
// circular base
commands.spawn((