diff --git a/src/components/saber-controls.js b/src/components/saber-controls.js index 92b851b..e24110a 100644 --- a/src/components/saber-controls.js +++ b/src/components/saber-controls.js @@ -1,6 +1,5 @@ AFRAME.registerComponent('saber-controls', { schema: { - activeHand: {default: 'right'}, hand: {default: 'right', oneOf: ['left', 'right']}, bladeEnabled: {default: true} }, diff --git a/src/index.html b/src/index.html index 21f1070..fe3404b 100644 --- a/src/index.html +++ b/src/index.html @@ -55,34 +55,25 @@ line="opacity: 0.75"> - - - - - - + + {% macro saber (hand, otherHand, color) %} + + + + {% endmacro %} + + {{ saber('left', 'right', 'pink') }} + {{ saber('right', 'left', 'cyan') }} {% if not IS_PRODUCTION %}