diff options
| author | realtradam <[email protected]> | 2021-12-18 02:03:57 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-12-18 02:03:57 -0500 |
| commit | 509f53c9bca30de88af6f12c371ca637a9a4f9a3 (patch) | |
| tree | fff0eb4fcea193a1c1acb383817bdf61c67458e9 /app/components | |
| parent | 264b2f9e92a475db75904f72cad2bc8131b39dda (diff) | |
| download | SteelWings-509f53c9bca30de88af6f12c371ca637a9a4f9a3.tar.gz SteelWings-509f53c9bca30de88af6f12c371ca637a9a4f9a3.zip | |
fixed separation defaults, centering sprites
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/boid.rb | 3 | ||||
| -rw-r--r-- | app/components/rules/separation.rb | 4 | ||||
| -rw-r--r-- | app/components/sprite.rb | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/app/components/boid.rb b/app/components/boid.rb index 99701df..060f9c3 100644 --- a/app/components/boid.rb +++ b/app/components/boid.rb @@ -1,4 +1,5 @@ FF::Cmp.new('Boid', x: 0, y: 0, vx: 0, vy: 0, - cx: 0, cy: 0) + cx: 0, cy: 0, + angle: 0) diff --git a/app/components/rules/separation.rb b/app/components/rules/separation.rb index 00fee32..5298623 100644 --- a/app/components/rules/separation.rb +++ b/app/components/rules/separation.rb @@ -1,3 +1,3 @@ FF::Cmp.new('BoidsSeparation', - strength: 100, - distance: 100) + :strength, + distance: 500) diff --git a/app/components/sprite.rb b/app/components/sprite.rb index 3af016d..01602c5 100644 --- a/app/components/sprite.rb +++ b/app/components/sprite.rb @@ -16,6 +16,6 @@ FF::Cmp.new("Sprite", props: { flip_vertically: false, flip_horizontally: false, angle_anchor_x: 0.5, - angle_anchor_y: 1.0, + angle_anchor_y: 0.5, blendmode_enum: 1 }) |
