CHAPTER 8

image

Applying Old-School Video Game Techniques in Modern Web Games

Mario Andrés Pagella, founder, Warsteed Studios

In computer graphics, frames are processed and painted on the screen by what some people refer to as the “animation,” “main,” “game,” or “update” loop. Personally, I prefer to call it “main,” “game,” or “update loop” for the sole reason that it’s standard practice in the industry to use this routine to perform other tasks besides painting pixels on the screen.

A good example of this is the accuracy of physics calculations. If your update loop is called 60 times per second, it means that the variables in your physics formulas ...

Get HTML5 Game Development Insights now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.