Skip to content
Advertisement

Tag: reference

arrays disappearing in method scope

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

Advertisement