add tower selection UI, cancellable actions, and pause UI
This commit is contained in:
parent
138a524abd
commit
918b4884b2
18 changed files with 468 additions and 23 deletions
|
|
@ -4,9 +4,7 @@
|
|||
|
||||
use avian3d::prelude::*;
|
||||
use bevy::prelude::*;
|
||||
use building::{
|
||||
ActiveBuildingPreview, BuildingInfo, BuildingPreview, PREVIEW_ALPHA, PopulatePlacedBuilding,
|
||||
};
|
||||
use building::{BuildingInfo, BuildingPreview, PREVIEW_ALPHA, PopulatePlacedBuilding};
|
||||
use combat::{Defense, Health};
|
||||
use combat_damagers::ContactDamage;
|
||||
use resources::Cost;
|
||||
|
|
@ -54,7 +52,7 @@ fn register(
|
|||
let preview = commands
|
||||
.spawn((
|
||||
BuildingPreview { info },
|
||||
ActiveBuildingPreview::default(), // Visibility::Hidden,
|
||||
Visibility::Hidden,
|
||||
Mesh3d(mesh.clone()),
|
||||
MeshMaterial3d(preview_material),
|
||||
))
|
||||
|
|
@ -63,6 +61,7 @@ fn register(
|
|||
BuildingInfo {
|
||||
preview,
|
||||
size: SIZE,
|
||||
unlocked: true,
|
||||
},
|
||||
Cost { souls: 5, bones: 0 },
|
||||
Name::new("Impaler"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue