Projectrile movement and moving refactor
This commit is contained in:
parent
cab8792207
commit
079341f5a8
8 changed files with 125 additions and 55 deletions
|
|
@ -51,7 +51,7 @@ fn startup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
|||
|
||||
commands.spawn(Camera2d);
|
||||
|
||||
player::spawn_player(&mut commands, player_sprite, Vec2::new(100., 100.));
|
||||
enemy::spawn_enemy(&mut commands, enemy_sprite.clone(), Vec2::new(0., 0.));
|
||||
spawn_projectile(&mut commands, projectile, 100, Factions::PlayerFaction);
|
||||
player::spawn_player(&mut commands, player_sprite, Vec2::new(0., 0.));
|
||||
enemy::spawn_enemy(&mut commands, enemy_sprite.clone(), Vec2::new(100., 100.));
|
||||
spawn_projectile(&mut commands, projectile, 1, Factions::PlayerFaction);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue