These are examples from the book JavaScript: Making Isometric Social Real-Time Games with HTML5, CSS3 and Javascript See the "O'Reilly Policy on Re-Use of Code ...