diff options
| author | realtradam <[email protected]> | 2021-08-09 05:17:42 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-08-09 05:17:42 -0400 |
| commit | 4e909c6b44794b76ef3a98c032ea90204b673f85 (patch) | |
| tree | 79cc49469447edf61ad835f61279bf48de51a61f /lib/00-define.rb | |
| parent | 4401e68464d1d5932daec84e41aeb7b4a88c831e (diff) | |
| download | ruboids-4e909c6b44794b76ef3a98c032ea90204b673f85.tar.gz ruboids-4e909c6b44794b76ef3a98c032ea90204b673f85.zip | |
cohesion and seperation
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) |
