Abstract
In this chapter, you will create an entirely new game: Space Rocks, shown in Figure 4-1 and inspired by the classic arcade game Asteroids. You will make extensive use of the framework you created in the previous chapter (the BaseGame, BaseScreen, and BaseActor classes) and add a few new features along the way. The most significant addition will be the ability to handle discrete events: actions that should occur only once each time a key is pressed.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Although you can implement multiple interfaces, you can only extend a single class at a time.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Lee Stemkoski
About this chapter
Cite this chapter
Stemkoski, L. (2018). Shoot-em-up games. In: Java Game Development with LibGDX. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3324-5_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3324-5_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3323-8
Online ISBN: 978-1-4842-3324-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)