Hi! I came across this code in a tutorial from another site.
game = { tileW:30, tileH:30 };
What is that syntax called? Basing from its appearance, I think it’s some sort of class/object, maybe? If so… can anyone give me pointers on how to use them effectively? I’d like to use them as sort of a global variable but I can’t seem to use them right. Any pointers?