Animations as a time function in HTML5 Games: Why and How to Implement them | Dark Hacker News