blob: b0606a20b2200b1a6c773c1a28b920dbaa1cc7a1 (
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::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)
|