Glossary

animation frame A snapshot of what the game looks like at a particular point in time. Games rapidly display animation frames. Each frame differs slightly from the preceding frame to simulate motion. An animation frame is much like a page in a flip book.

animation timer A stopwatch with two added features: It can run for a specified duration; an easing function can be added to it. Timers encapsulate the ability to modify the flow of time for a given activity.

API Application Programming Interface.

arena An HTML DIV element, specific to Snail Bait, that contains all of the game’s elements, and hence the game’s action takes place here.

aspect ratio The width of a device’s screen divided by its height.

asset In Snail Bait, a coin, ruby, ...

Get Core HTML5 2D Game Programming 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.