Skip to content

Commit

Permalink
fix: Reduce radius of slime spawning
Browse files Browse the repository at this point in the history
This fixes the issue of some slimes spawning outside of the area.
  • Loading branch information
PraxTube committed Jul 9, 2024
1 parent e91e242 commit 348c40d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/enemy/slime/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ fn spawn_slime(
.spawn((
Collider::ball(6.0),
ActiveEvents::COLLISION_EVENTS,
// CollisionGroups::new(
// Group::from_bits(0b0100).unwrap(),
// Group::from_bits(0b1000).unwrap(),
// ),
TransformBundle::from_transform(Transform::from_translation(Vec3::new(
0.0, -10.0, 0.0,
))),
Expand Down
6 changes: 3 additions & 3 deletions src/item/item_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ pub fn statue_sub_spawner(statue: &Statue) -> Vec<(f32, EnemySubSpawner)> {
5.0,
EnemySubSpawner {
statue: statue.clone(),
count: 6,
radius: 175.0,
count: 4,
radius: 150.0,
spawn_formation: SpawnFormation::Circle,
timer: Timer::from_seconds(0.1, TimerMode::Repeating),
..default()
Expand All @@ -163,7 +163,7 @@ pub fn statue_sub_spawner(statue: &Statue) -> Vec<(f32, EnemySubSpawner)> {
EnemySubSpawner {
statue: statue.clone(),
count: 8,
radius: 210.0,
radius: 180.0,
spawn_formation: SpawnFormation::Random,
timer: Timer::from_seconds(0.3, TimerMode::Repeating),
..default()
Expand Down

0 comments on commit 348c40d

Please sign in to comment.