pookage / ar-turret-game

0 stars 0 forks source link

Create a blaster-controls custom element #7

Open pookage opened 3 years ago

pookage commented 3 years ago
pookage commented 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

pookage commented 3 years ago

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.