Summary
We have learned how to draw at low level using a standard View and also a SurfaceView. We have created a Sprite class to reuse the code of the items that are displayed on the screen.
The DrawThread has been updated to a more efficient one and we also added a frames-per-second counter to check the efficiency of each configuration.
Along the way, we learned about game controllers and the different ways to create levels. We also decided to spawn asteroids YASS using procedural generation, and put this into effect.
We also added support for parallax backgrounds and layers to the engine.
All in all, YASS is starting to look good, but we are clearly missing something: the bullets do nothing when they hit an asteroid and neither does our spaceship. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access