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 ...
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