Skip to content

Commit

Permalink
Change particle numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
billyrieger committed Apr 9, 2023
1 parent 58a7b88 commit fd2bf28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ fn add_particles_to_goals(
commands.entity(parent.get()).with_children(|parent| {
parent.spawn(GoalParticles).insert(ParticleSystemBundle {
particle_system: ParticleSystem {
max_particles: 500,
max_particles: 100,
texture: ParticleTexture::Sprite(game_assets.pixel.clone()),
initial_speed: JitteredValue::jittered(500.0, -300.0..300.0),
velocity_modifiers: vec![VelocityModifier::Drag(0.05.into())],
Expand All @@ -367,7 +367,7 @@ fn add_particles_to_goals(
system_duration_seconds: 2.,
max_distance: Some(500.),
scale: 2.0.into(),
bursts: vec![ParticleBurst::new(0.0, 1000)],
bursts: vec![ParticleBurst::new(0.0, 100)],
..ParticleSystem::default()
},
transform: Transform::from_translation(
Expand Down
2 changes: 1 addition & 1 deletion src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use bevy_tweening::{lens::TransformPositionLens, *};
use leafwing_input_manager::prelude::*;

const MOVEMENT_TIME_SEC: f32 = 0.1;
const NEIGHBOR_DELAY_SEC: f32 = 0.2;
const NEIGHBOR_DELAY_SEC: f32 = 0.075;

pub struct PlayerPlugin;

Expand Down

0 comments on commit fd2bf28

Please sign in to comment.