Gameover screen

This commit is contained in:
Rendo 2025-11-18 00:21:40 +05:00
commit 22092ce3cc
10 changed files with 127 additions and 7 deletions

View file

@ -1,4 +1,4 @@
use crate::velocity::Velocity;
use crate::{GameObject, velocity::Velocity};
use bevy::prelude::*;
use crate::{
@ -33,8 +33,9 @@ pub fn spawn_enemy(commands: &mut Commands, sprite: Handle<Image>, at: Vec2) {
Velocity::moving(256., f32::to_radians(180.)),
Sprite::from(sprite),
Transform::from_xyz(at.x, at.y, 0.),
Damagable::new(100),
Damagable::new(20),
Factions::EnemyFaction,
GameObject,
));
}