Bevy Health System

Table of contents

What is bevyhealthsystem

An easy way to add a health system to your bevy's entity.
NOTICE: This package is not entirely depend on bevy, the only "bevy thing" this package use is the Component struct. This is describe in: NO BEVY section.

Design Goals

Useful Links

Quick Start

  1. Import the HealthSystem struct.
  2. Add HealthSystem struct just like any component for your entity.

```rust use bevy::prelude::* use bevyhealthsystem::HealthSystem

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

No Bevy

Explanation

This package is not entirely depend on bevy, the only "bevy thing" this package use is the Component struct.

rust use bevy::prelude::Component;

How to remove bevy

If you want to use this package independently with bevy, here's what to do.

  1. Go to "src/lib"
  2. Copy HealthSystem struct and its implementation to your rust code.
  3. Remove the Component trait.

Examples

There will be examples when the package reach 1.0.0

LICENSE

MIT