diff options
| author | realtradam <[email protected]> | 2021-12-19 19:06:50 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-12-19 19:06:50 -0500 |
| commit | 844d8c194b48055ba60be4d185ad9ab688cce92a (patch) | |
| tree | 8058c12295b9a6e03a678be2b50b9b328291c0e0 /app/systems/start_game.rb | |
| parent | bd645871ff96a45c23c05f6fc7a82ac1e2749616 (diff) | |
| download | SteelWings-844d8c194b48055ba60be4d185ad9ab688cce92a.tar.gz SteelWings-844d8c194b48055ba60be4d185ad9ab688cce92a.zip | |
Bullets, Health, Collision systems implemented. Renamed plane sprites.
Diffstat (limited to 'app/systems/start_game.rb')
| -rw-r--r-- | app/systems/start_game.rb | 15 |
1 files changed, 2 insertions, 13 deletions
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( |
