From bd645871ff96a45c23c05f6fc7a82ac1e2749616 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 19 Dec 2021 01:35:05 -0500 Subject: fixed ship creation --- app/systems/start_game.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3