diff options
| author | _Tradam <[email protected]> | 2021-12-23 03:39:35 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-23 03:39:35 -0500 |
| commit | f70283e5ad5f5a5744ca0695a184f72f88803aca (patch) | |
| tree | f9a182ccbc6ade03524f70f4483244a2e86ae6d1 /app/systems/start_game.rb | |
| parent | 18f869d18fac469e44f9a6a4772494a262c1b0cb (diff) | |
| download | SteelWings-f70283e5ad5f5a5744ca0695a184f72f88803aca.tar.gz SteelWings-f70283e5ad5f5a5744ca0695a184f72f88803aca.zip | |
cleaned up boid rules, changed how strength works (#8)
Diffstat (limited to 'app/systems/start_game.rb')
| -rw-r--r-- | app/systems/start_game.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/systems/start_game.rb b/app/systems/start_game.rb index d6546df..4657e77 100644 --- a/app/systems/start_game.rb +++ b/app/systems/start_game.rb @@ -28,9 +28,9 @@ FF::Sys.new('StartGame', priority: 50 ) do FF::Cmp::SingletonCamera[0], FF::Cmp::Boid.new(h: 1920 * 2, w: 1920 * 2) ) - 15.times do |pos| - Factory::Osprey.new(x: position_range.sample, y: position_range.sample) - end + #15.times do |pos| + # Factory::Osprey.new(x: position_range.sample, y: position_range.sample) + #end sprite = FF::Cmp::Sprite.new sprite.props[:path] = [ @@ -45,12 +45,12 @@ FF::Sys.new('StartGame', priority: 50 ) do debug_arrow, FF::Cmp::SingletonCamera[0], FF::Cmp::BoidBounds.new, - FF::Cmp::Follow.new(target: :mouse, strength: 500), + FF::Cmp::Follow.new(target: :mouse, strength: 0.007), FF::Cmp::SingletonPlayer[0], FF::Cmp::Team.new(team: 'player'), FF::Cmp::Weapon.new, - FF::Cmp::BoidMinimumSpeed.new, - FF::Cmp::DecaySpeed.new(strength: 0.9), + FF::Cmp::BoidMinimumSpeed.new(speed: 5), + FF::Cmp::DecaySpeed.new(strength: 0.8), ) |
