NERDDISCO / luminave

Operate all the lights with your web browser and create stunning visual experiences.
MIT License
76 stars 8 forks source link

Don't use the index of an element in an Array #70

Closed TimPietrusky closed 5 years ago

TimPietrusky commented 5 years ago

Instead of using the index of the element in an Array to change the element in the array, use the ID of the element all the time. This makes it easier to exactly change the element we want.

Examples

TimPietrusky commented 5 years ago

The index is not used anymore, only the universe-manager still needs it, because there is no concept yet of having a universe coupled directly to everything else.