I am trying to create a class to my javascript game to add multiplayer but within the class i am having problems with the values of arrays changing as you can see in the sendNetEntities() function I think im having problems with variables somehow being references of something instead of instances. But im not entirely sure all of the rules
Tag: instance
Question on how to work with class instances inside an array
So i am learning how to work with classes and class instances and have created a scenario where i have a class Employee that is extended by three other classes that represent employees from different departments. I already managed to create a function that allows me to create a new instance of any class and push it into an array