I have learned the power of Immediately-Invoked Function Expressions in Javascript, and how useful they can be for encapsulating games!
Up to this point, Quadrant was running mainly in the global namespace. With IIFEs I’ve been able to properly encapsulate the game, which will hopefully help with some of the performance issues.
0 comments