add tower selection UI, cancellable actions, and pause UI

This commit is contained in:
Jim 2025-08-31 12:08:44 -04:00
parent 138a524abd
commit 918b4884b2
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
18 changed files with 468 additions and 23 deletions

View file

@ -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"),