craftecode / hello-world

My first GitHub repository
0 stars 0 forks source link

Score script should be turned into a component #2

Open craftecode opened 5 years ago

craftecode commented 5 years ago

``

craftecode commented 5 years ago

It looks like I can declare a global variable that is accessible throughout based on this test I did using a sample from here:

`

`

craftecode commented 5 years ago

Or I could check the attributes of an object each time using stuff from the link below then add to it.

https://aframe.io/docs/0.9.0/introduction/javascript-events-dom-apis.html#retrieving-position-and-scale