Abstract
At the heart of your favorite games is the game loop. At the core of the game loop is control over the game clock. In each frame the game does some or all of the following: updates the game state, triggers timers, processes user inputs, renders graphics, and plays audio. Each of these operations must be synchronized using a virtual clock controlled by the game loop. This chapter explains how to implement a deterministic and efficient main loop for any type of game designed from the ground up to run in the browser.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Colt McAnlis
About this chapter
Cite this chapter
McAnlis, C. et al. (2014). Implementing a Main Loop in Dart. In: HTML5 Game Development Insights. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6698-3_20
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6698-3_20
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6697-6
Online ISBN: 978-1-4302-6698-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books