Gif Player in Javascript

At some web pages you can notice that gifs aren’t playing at the beginning but they are waiting for user to click on them to start playing. This trick can prevent from unnecessary data downloading and from overhelming the computer by displaying the huge amount of animated pictures. How is it done?

Simple hex picker

Using hexes instead of square fields gives strategy games more depth and variety in creating interesting, tactical situations. But, because of its shape, it is slightly more challenging to implement them. This article will show how to nicely pick the proper hex tile using a mouse.

First of all, let’s look at the interesting properies of the hexagon.


GPU particles

Modern graphic cards are the source of the enormous computing power that can be used not only for rendering. How about updating over million of particles with a realtime changing enviroment or emitter position?

One milion particles running on GPU

One milion particles running on GPU

Light shafts

Light shafts, light scattering, god rays – many names but they represent the same awesome effect that can be noticed during foggy day or in a dusty room.
In games they make levels more moody and atmospheric, but how are they made?


The final effect might look like that.


Welcome to the great and sumptuous reopening of the blog!

This will be another iteration of a place where I, your humble coder and developer, will post about programming and games. Or at least I’ll start with these subjects.

Why the reboot? Well, there were few things that didn’t go well.

  • Lack of articles and the quality of those that existed.
  • Language that not everyone could understand.
  • Technical issues with AJAX… let’s say: triumph of form over content.

There is also an another thing, I’ve just realised that I’m not and I probably never will be a good writer. So I’ll try to describe only the most important aspects of future topics – briefly an concretely.

I also invite you all to follow me on Twitter as a form of the newsletter (and because everyone has a Twitter… right?)

Ok, enough of this introduction. Let’s start this advanture!