if you declare the variable without the datatype/var/let thing it will be globally scoped
extremely useful for declaring within setup():
function setup(){
p1 = new Player (loremipsum);
p2 = new Player (loremipsum);
}
if you declare the variable without the datatype/var/let thing it will be globally scoped
extremely useful for declaring within setup():
function setup(){
p1 = new Player (loremipsum);
p2 = new Player (loremipsum);
}