range indicators, limit tower placement to within range of core

This commit is contained in:
Jim 2025-09-01 19:10:16 -04:00
parent 9c4787f5e2
commit 6a4978041c
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
16 changed files with 350 additions and 60 deletions

View file

@ -8,7 +8,7 @@ use avian3d::prelude::{Collider, LinearVelocity, RigidBody};
use bevy::prelude::*;
use building::{BuildingInfo, BuildingPreview, PREVIEW_ALPHA, PopulatePlacedBuilding};
use combat::{
Defense, Health,
Defense, Health, Range,
projectiles::{Fire, Projectile, ProjectileLauncher, get_shotgun_launch_vectors},
};
use combat_damagers::ContactDamage;
@ -181,9 +181,9 @@ fn populate(
Health::new(20.0),
Defense::new(7.0),
ContactDamage::new(2.0),
Range(10.0),
ProjectileLauncher::new(
Duration::from_secs(1),
50.0,
5.0,
Vec3::Y * (SIZE.y as f32 + 0.5),
Duration::from_secs(10),