projectile system
This commit is contained in:
parent
918b4884b2
commit
ad4a2cf393
17 changed files with 400 additions and 23 deletions
|
|
@ -5,7 +5,7 @@
|
|||
use avian3d::prelude::*;
|
||||
use bevy::prelude::*;
|
||||
use building::Building;
|
||||
use combat::{GaveDamage, Health};
|
||||
use combat::{GaveDamage, Health, Team};
|
||||
use combat_damagers::ContactDamage;
|
||||
use inhabitant::Inhabitant;
|
||||
use state::GameSystemSet;
|
||||
|
|
@ -51,8 +51,9 @@ fn spawn(
|
|||
Coranth,
|
||||
transform.clone(),
|
||||
Health::new(5.0),
|
||||
ContactDamage { amount: 5.0 },
|
||||
ContactDamage::new(5.0),
|
||||
Name::from("Coranth"),
|
||||
Team::Inhabitant.collision_layers(),
|
||||
))
|
||||
.observe(explode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue