summaryrefslogtreecommitdiffhomepage
path: root/app/systems/ai/target_player.rb
diff options
context:
space:
mode:
authorArnold <[email protected]>2021-12-26 23:09:29 -0500
committerGitHub <[email protected]>2021-12-26 23:09:29 -0500
commit0a611afcb8474afe01a451b20fa5608be334053b (patch)
tree6af89bbdab20d6f9ded6c711aefd450ca12e7350 /app/systems/ai/target_player.rb
parentb7dea8016b5b1328808e28b76cc12343907de63e (diff)
parent20da68139878d9286cb642c9bcb5e20c28077ba7 (diff)
downloadSteelWings-0a611afcb8474afe01a451b20fa5608be334053b.tar.gz
SteelWings-0a611afcb8474afe01a451b20fa5608be334053b.zip
Merge pull request #12 from realtradam/development
version 1.0
Diffstat (limited to 'app/systems/ai/target_player.rb')
-rw-r--r--app/systems/ai/target_player.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/systems/ai/target_player.rb b/app/systems/ai/target_player.rb
index 1e4a3ea..bf8b9e8 100644
--- a/app/systems/ai/target_player.rb
+++ b/app/systems/ai/target_player.rb
@@ -1,11 +1,12 @@
FF::Sys.new("TargetPlayer", priority: 40) do
FF::Cmp::SingletonRandomAIPick[0].entities.each do |entity|
sep = entity.components[FF::Cmp::BoidsSeparation][0]
- sep.distance = 200
+ sep.distance = Factory::SampleEnemy.defaults[:boids_seperation_distance]
+ sep.strength = Factory::SampleEnemy.defaults[:boids_seperation_strength]
follow_mgr = entity.components[FF::Cmp::Follow]
player_boid = FF::Cmp::SingletonPlayer[0].entities[0].components[FF::Cmp::Boid][0]
if follow_mgr.nil? || follow_mgr.empty?
- entity.add FF::Cmp::Follow.new(target: player_boid, strength: 1.2)
+ entity.add FF::Cmp::Follow.new(target: player_boid, strength: 0.6)
end
end
end