summaryrefslogtreecommitdiffhomepage
path: root/app/factories
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-19 23:15:39 -0500
committerGitHub <[email protected]>2021-12-19 23:15:39 -0500
commit51fa40d59c7face1a7bf21ebc83e8df0f18ac09b (patch)
treeffd358def9a9786b6ab6580dae8e56b1b834d511 /app/factories
parentb9ae6e7fc8c770db21f88a92c674d6618ba502e1 (diff)
downloadSteelWings-51fa40d59c7face1a7bf21ebc83e8df0f18ac09b.tar.gz
SteelWings-51fa40d59c7face1a7bf21ebc83e8df0f18ac09b.zip
cleanup and polish of sprites (#7)
Diffstat (limited to 'app/factories')
-rw-r--r--app/factories/ships/osprey.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/factories/ships/osprey.rb b/app/factories/ships/osprey.rb
index ff8cd19..1e76b17 100644
--- a/app/factories/ships/osprey.rb
+++ b/app/factories/ships/osprey.rb
@@ -2,9 +2,18 @@ class Factory
class Osprey
def self.new(x: x, y: y)
sprite = FF::Cmp::Sprite.new
- sprite.props[:path] = 'sprites/kenny/Ships/Osprey.png'
+ sprite.props[:path] = [
+ 'sprites/kenny/Ships/WeebillGrey.png',
+ 'sprites/kenny/Ships/BuntingGrey.png',
+ 'sprites/kenny/Ships/NighthawkGrey.png',
+ 'sprites/kenny/Ships/MagpieGrey.png',
+ 'sprites/kenny/Ships/WaxwingGrey.png',
+ 'sprites/kenny/Ships/LongspurGrey.png',
+ 'sprites/kenny/Ships/WarblerGrey.png',
+ 'sprites/kenny/Ships/NutcrackerGrey.png',
+ ].sample
FF::Ent.new(
- FF::Cmp::Boid.new(x: x, y: y, vx: 0, vy: 0, w: 32, h: 32),
+ FF::Cmp::Boid.new(x: x, y: y, vx: -3, vy: -3, w: 32, h: 32),
sprite,
FF::Cmp::BoidBounds.new(strength: 0.6),
FF::Cmp::BoidsAlignment.new(strength: 1),
@@ -13,6 +22,7 @@ class Factory
FF::Cmp::Hp.new(health: 100),
FF::Cmp::CollisionDamage.new(damage: 100),
FF::Cmp::Hitcircle.new(r: 12),
+ FF::Cmp::BoidMinimumSpeed.new(speed: 3),
FF::Cmp::Team.new,
FF::Cmp::SingletonDebugVectorArrow[0],
FF::Cmp::SingletonCamera[0],