summaryrefslogtreecommitdiffhomepage
path: root/lib/00-define.rb
blob: 0075b7fdfb7d73650ade379bcbe06453d950d033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FF::Stg.add FF::Scn.new('Default')
FF::Scn.new('BoidCalculations')

FelFlame::Components.new('Boids',
                         # holds the object to render
                         #:obj,
                         # holds the vector to render
                         #:vect,
                         # the current position
                         x: 0, y: 0,
                         # current velocity
                         vx: 0, vy: 0,
                         # calculated velocity change for next frame
                         cx: 0, cy: 0)
FelFlame::Components.new('BoidVisuals',
                         :obj, :vect)