Open pookage opened 3 years ago
I'm not sure whether the a-frame scene will be ready by the time the left
and right
attributes grab the entities; so we should do some kind of check that the things we have are correct before emitting fire etc
As the functionality for the left / right button is duplicated, it might be worth moving their logic into a separate <blaster-controls-button>
and just have this <blaster-controls>
render them both, lay them out, and handle the window events.
<blaster-controls>
custom-element:active
,:hover:
:focus
styles etcleft
andright
attributes, which are selectors for the respective<a-blaster>
entities (#6) in the<a-scene>
"fire"
event on the entity selected by theleft
attribute"fire"
event on the entity selected by theright
attributemouseup
event"fire"
event should be emitted as if the left-button had been pressed"fire"
event should be emitted as if the right-button had been pressed