This commit is contained in:
Rendo 2025-11-15 17:08:38 +05:00
commit 526caf91c7
4 changed files with 29 additions and 11 deletions

View file

@ -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,
));
}