diff options
Diffstat (limited to 'lib/00-define.rb')
| -rw-r--r-- | lib/00-define.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/00-define.rb b/lib/00-define.rb new file mode 100644 index 0000000..b0606a2 --- /dev/null +++ b/lib/00-define.rb @@ -0,0 +1,16 @@ +FF::Stg.add FF::Scn.new('Default') +FF::Stg.add 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) |
