Monthly Archives: September 2009

Asteroid

For making an asteroid game,
I found it hard at first but it’s quite easy.

One of Newton’s law : In the absence of a net external force, a body either is at rest or moves with constant velocity.
We are evolving in space so the last phrase part is our algorithm.
But you might have encountered some problems [...]

Generic Singleton

Click here for an introduction to the Singleton.
You might wonder the useful-ness of doing this.
Well, I found that by pure accident, I was reviewing some code then I decided to try enhance the original Singleton pattern.
Here are the benefits :

You don’t need to have a field or property representing the singleton instance,
With its syntax, it [...]