Tag Archives: Javascript

A simple JavaScript singleton pattern

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:

#1: … Continue reading

Posted in Application Development, JavaScript | Tagged , , , , | Leave a comment

A Christmas Game Built With Impact

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

Posted in Games, HTML5 | Tagged , , , , | 1 Comment