summaryrefslogtreecommitdiffhomepage
path: root/lib/00-define.rb
blob: 1ebd8fdc0950d99af176ff923f182cca73b11872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,
                        flipped: false)
FelFlame::Components.new('Fish')
FF::Cmp::Fish.new
FelFlame::Components.new('Piranha')
FF::Cmp::Piranha.new
FelFlame::Components.new('BoidVisuals',
                         :obj, :vect,)