Skip to content

Commit c357b5e

Browse files
committed
Added alignment property
1 parent 0a4b3e3 commit c357b5e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/gameobjects/rope/RopeCreator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ GameObjectCreator.register('rope', function (config, addToScene)
2929

3030
var key = GetAdvancedValue(config, 'key', null);
3131
var frame = GetAdvancedValue(config, 'frame', null);
32+
var horizontal = GetAdvancedValue(config, 'horizontal', true);
3233
var points = GetValue(config, 'points', undefined);
3334
var colors = GetValue(config, 'colors', undefined);
3435
var alphas = GetValue(config, 'alphas', undefined);
3536

36-
var rope = new Rope(this.scene, 0, 0, key, frame, points, colors, alphas);
37+
var rope = new Rope(this.scene, 0, 0, key, frame, points, horizontal, colors, alphas);
3738

3839
if (addToScene !== undefined)
3940
{

0 commit comments

Comments
 (0)