Expand description

Fast and easy way to add a health system to any bevy’s entity A solid foundation for any health system.

Quick start.

  1. Import the HealthSystem struct.
  2. Add HealthSystem struct just like any component for your entity.
use bevy::prelude::*;
use bevy_health_system::HealthSystem;

fn spawn_player(mut commands: Commands) {
    commands.spawn(HealthSystem::new(100.0));
}

Websites

Structs

  1. HealthSystem
  2. HealthSystemState
  3. HealthSystemModifier
  4. HealthSystemReviveHealType

License

MIT

Re-exports

Modules