Answer the question
In order to leave comments, you need to log in
Dot after function eg: function Player() -> Player.list = {}?
What does it mean?
For example:
function Player(){
let self = {x:0, y:0, spdX:0, spdY:0, id:""};
Player.list[self.id] = self;
return self;
}
Player.list = {};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question