player can take damage

This commit is contained in:
2025-04-02 11:33:01 +08:00
parent f967b1b0da
commit 4652bc4563
8 changed files with 120 additions and 50 deletions

View File

@@ -8,6 +8,7 @@ use crate::{
controller::{CharacterControllerBundle, MovementBundle, PlayerMovement},
},
heads::HeadChanged,
hitpoints::Hitpoints,
loading_assets::GameAssets,
physics_layers::GameLayer,
sounds::PlaySound,
@@ -95,6 +96,7 @@ fn spawn(
.spawn((
Name::from("player"),
Player(0),
Hitpoints::new(100),
CameraTarget,
transform,
Visibility::default(),