Abstract
This chapter covers the basic elements of programming games and provides a starting point for the chapters that follow. First, you learn about the basic skeleton of any game, consisting of a game world and a game loop. You see how to create this skeleton in JavaScript, by looking at various examples such as a simple application that changes the background color. Finally, I talk about clarifying your code by using comments, layout, and whitespace in the right places.
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 Arjan Egges
About this chapter
Cite this chapter
Egges, A. (2014). Game Programming Basics. In: Building JavaScript Games. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6539-9_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6539-9_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6538-2
Online ISBN: 978-1-4302-6539-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books