diff options
| author | _Tradam <[email protected]> | 2021-12-18 22:51:31 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-18 22:51:31 -0500 |
| commit | 55abb3c7534e57f8da270a7e77b16f3f06ca3712 (patch) | |
| tree | b40824f6d6588ebd5d7db2e7bfa6312d117ee419 /app/components | |
| parent | 43a07949acca8a11a3aee6ea915a9a3e00b373ab (diff) | |
| parent | 32a5e203e092dc22e7d1a34641b10692abe14702 (diff) | |
| download | SteelWings-55abb3c7534e57f8da270a7e77b16f3f06ca3712.tar.gz SteelWings-55abb3c7534e57f8da270a7e77b16f3f06ca3712.zip | |
Merge branch 'master' into menu-dev
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) |
