Factions
This commit is contained in:
parent
4bf62bfe39
commit
526caf91c7
4 changed files with 29 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
use crate::{collision::Collider, damagable::Damagable, movable::Movable};
|
||||
use crate::{collision::Collider, damagable::Damagable, movable::Movable, ships::Factions};
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Enemy;
|
||||
|
|
@ -13,5 +13,6 @@ pub fn spawn_enemy(commands: &mut Commands, sprite: Handle<Image>, at: Vec2) {
|
|||
Sprite::from(sprite),
|
||||
Transform::from_xyz(at.x, at.y, 0.),
|
||||
Damagable::new(10),
|
||||
Factions::EnemyFaction,
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue