Self-test questions

Q1) What can be used to provide a visual improvement for our game screen? Can we use a nice light green, grassy background instead of just black?

Q2) How about some nice flowers?

Q3) If you're feeling brave, make the flowers sway. Think about what we have learned about sprite sheets. The theory is exactly the same as that of the animated snake head. We just need a few lines of code to control the frame rate separately from the game frame rate.

Q4) We could set up another counter and use our snake head animation in GameActivity, but it wouldn't be that useful because the subtle tongue movements would be barely visible at the smaller size. But could we swish the tail segment?

Q5) Here is a slightly trickier enhancement. You can't ...

Get Learning Java by Building Android Games 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.