Gaming Friday – Beware of Vendetta

Gaming Friday – Beware of Vendetta

Friday afternoon is usually reserved for games, a time where we drop our developer hat, and put on the gamer hat. Today we are playing Bang, it is a wild west card game where everyone is given a random role – Sheriff, Deputy Sheriff, Outlaws, and Renegade. With...
Is there always a right way of doing things?

Is there always a right way of doing things?

Reading western articles about leadership and management is always inspiring. After an executive lost the company several million dollars in a risky venture, expected to be fired, instead was told by his boss – “You can’t be serious. We’ve just spent millions of...

Why do we talk?

We talk to think. There are times when we had an idea, but are unable to clearly articulate it, we would try to talk with somebody to find the right words. Sometime when there are nobody convenient, talking with ourselves serve the same purpose. We talk to release our...

Dot Product

Dot product is a cheap and useful function in many situations. It calculate the cosAngle to two unit vectors which is 1 when acute, 0 to -1 for obtuse angle. These are some applications which I found very useful. Gameplay Check if two unit are facing each other by dot...

NAN

Not A Number NaN is an insidious bug that often plague games and shader programs during development. If you are lucky, you would probably never encounter it before, but the first time would often be very painful. It began with a single unit disappearing from the map,...

Lerp

Linear Interpolation It would commonly take in 3 scalar or 2 vector and a scalar, and return the result of the formula x + s(y-x). Gameplay I often find this function useful for cheap generation of points along a relatively straight line. It is also very useful to...