© Lee Stemkoski 2018
Lee StemkoskiJava Game Development with LibGDXhttps://doi.org/10.1007/978-1-4842-3324-5_4

4. Shoot-em-up games

Lee Stemkoski1 
(1)
DEPT OF MATH & CS, ADELPHI UNIVERSITY DEPT OF MATH & CS, Garden City, New York, USA
 
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.
Figure 4-1.

The Space Rocks game

Game Project: Space Rocks

When starting ...

Get Java Game Development with LibGDX: From Beginner to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.