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 help notice that when the snake sprites are headed in three out of the four possible directions, they don't look right. Can you fix this?