diff options
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/boid.rb | 9 | ||||
| -rw-r--r-- | app/components/camera.rb | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/app/components/boid.rb b/app/components/boid.rb index 060f9c3..3358559 100644 --- a/app/components/boid.rb +++ b/app/components/boid.rb @@ -1,5 +1,6 @@ FF::Cmp.new('Boid', - x: 0, y: 0, - vx: 0, vy: 0, - cx: 0, cy: 0, - angle: 0) + x: 0, y: 0, # position + vx: 0, vy: 0, # velocity + cx: 0, cy: 0, # change in velocity + w: 0, h: 0, # width and height + angle: 0) # angle of velocity diff --git a/app/components/camera.rb b/app/components/camera.rb new file mode 100644 index 0000000..dc61bae --- /dev/null +++ b/app/components/camera.rb @@ -0,0 +1,5 @@ +FF::Cmp.new('SingletonCamera', + :x, :y, + :zoom, :angle) + +FF::Cmp::SingletonCamera.new(x: 0.0, y: 0.0, zoom: 1.0, angle: 0.0) |
