Gameover screen
This commit is contained in:
parent
66797415bd
commit
22092ce3cc
10 changed files with 127 additions and 7 deletions
|
|
@ -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,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue