Abstract
In this chapter we’re going to introduce some critical structure into our code. The previous few chapters introduced the requirement to store data tied to our game elements. This chapter introduces the use of objects as a solution to the explosion in complexity this brings. Objects are a great solution because they enable data and code to be intimately connected.
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
© 2017 Graeme Stuart
About this chapter
Cite this chapter
Stuart, G. (2017). Animating Asteroids. In: Introducing JavaScript Game Development . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3252-1_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3252-1_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3251-4
Online ISBN: 978-1-4842-3252-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books