How developers make fun of players or a bit of maths behind Scorpion King and Anubis.