Tag Archives: Javascript

There are a number of different approaches that can be taken to creating singleton patterns in JavaScript – this one is both simple and effective and supports lazy initialisation. The following code shows typical usage of constructor functions:

It’s that time of the year again. I thought I’d celebrate by making my first foray into the world of HTML5 games development by putting together a quick Christmas game. I first looked around for a suitable JavaScript game framework. … Continue reading →