From 844d8c194b48055ba60be4d185ad9ab688cce92a Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 19 Dec 2021 19:06:50 -0500 Subject: Bullets, Health, Collision systems implemented. Renamed plane sprites. --- app/systems/start_game.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'app/systems/start_game.rb') diff --git a/app/systems/start_game.rb b/app/systems/start_game.rb index cb29092..b5a832b 100644 --- a/app/systems/start_game.rb +++ b/app/systems/start_game.rb @@ -17,19 +17,8 @@ FF::Sys.new('StartGame', priority: 50 ) do ] position_range = (100..700).to_a - 25.times do |pos| - sprite = FF::Cmp::Sprite.new - sprite.props[:path] = 'sprites/kenny/Ships/ship_0011.png' - FF::Ent.new( - FF::Cmp::Boid.new(x: position_range.sample, y: position_range.sample, vx: 25, vy: 25, w: sprite.props[:w], h: sprite.props[:h]), - sprite, - FF::Cmp::BoidBounds.new(strength: 1), - FF::Cmp::BoidsAlignment.new(strength: 1), - FF::Cmp::BoidsSeparation.new(distance: 150, strength: 0.01), - FF::Cmp::BoidsCohesion.new(strength: 100), - debug_arrow, - FF::Cmp::SingletonCamera[0], - ) + 5.times do |pos| + Factory::Osprey.new(x: position_range.sample, y: position_range.sample) end FF::Stg.add( -- cgit v1.2.3