diff options
Diffstat (limited to 'app/systems/start_game.rb')
| -rw-r--r-- | app/systems/start_game.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/systems/start_game.rb b/app/systems/start_game.rb index 2972209..cb29092 100644 --- a/app/systems/start_game.rb +++ b/app/systems/start_game.rb @@ -21,13 +21,14 @@ FF::Sys.new('StartGame', priority: 50 ) do 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), + 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], ) end |
