diff options
Diffstat (limited to 'app/tick.rb')
| -rw-r--r-- | app/tick.rb | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/app/tick.rb b/app/tick.rb index 11a47a5..2a05891 100644 --- a/app/tick.rb +++ b/app/tick.rb @@ -1,25 +1,25 @@ -debug_arrow = FF::Cmp::DebugVectorArrow.new(length: 5) -position = [ - {x: 100, y: 100}, - {x: 500, y: 500}, - {x: 700, y: 200}, - {x: 150, y: 250}, -] -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), - 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, - ) -end +#debug_arrow = FF::Cmp::DebugVectorArrow.new(length: 5) +#position = [ +# {x: 100, y: 100}, +# {x: 500, y: 500}, +# {x: 700, y: 200}, +# {x: 150, y: 250}, +#] +#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), +# 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, +# ) +#end #FF::Ent.new( # FF::Cmp::Sprite.new, # FF::Cmp::Boid.new(x: 150, y: 250), @@ -29,9 +29,10 @@ end # #FF::Cmp::BoidsCohesion.new, # debug_arrow, #) -FF::Scn::Debug.add(FF::Sys::DebugRenderVectorArrow) -@pause = true -FF::Stg.remove FF::Scn::BoidRules +#FF::Scn::Debug.add(FF::Sys::DebugRenderVectorArrow) +#@pause = true +#FF::Stg.remove FF::Scn::BoidRules +FF::Sys::InitTitleScreen.call def tick args args.outputs.background_color = [0,0,0] FelFlame::Stage.call |
