Chapter 17. Manipulating Bitmaps and Coding the Snake class
In this chapter, we will finish the Snake game and make it fully playable. We will put what we learned about ArrayList
and enum
to good use and we will properly see the benefit of encapsulating all the object-specific drawing code into the object itself. Furthermore, we will learn how to manipulate Bitmaps so that we can rotate and invert them to face any way that we need them to.
Here is our to-do list for this chapter:
- Rotating and inverting Bitmaps
- Add the sound effects to the project
- Code the
Snake
class - Finish the game
Let's start with the theory part.