Back to Search Start Over

Implementing a Main Loop in Dart

Authors :
Ian Ballantyne
Duncan Tebbs
Petter Lubbers
John McCutchan
Takuo Kihira
Shun Lin
Don Olmstead
Bruno Garcia
Sean Bennett
Brandon Jones
Andrzej Manzur
Chad Austin
Colt McAnlis
Florian d’Erfurth
Andres Pagella
Ivan Popelyshev
Jesse Freeman
Tyler Smith
Jon Howard
Jason Gauci
Source :
HTML5 Game Development Insights ISBN: 9781430266976
Publication Year :
2014
Publisher :
Apress, 2014.

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.

Details

ISBN :
978-1-4302-6697-6
ISBNs :
9781430266976
Database :
OpenAIRE
Journal :
HTML5 Game Development Insights ISBN: 9781430266976
Accession number :
edsair.doi...........fddb215d4341992c34ced65c10b61c11
Full Text :
https://doi.org/10.1007/978-1-4302-6698-3_20