So far, we have added the graphics that move around the screen and collide with each other, but it is not fun yet, since the player cannot control our main character and it would not be a game unless our user can interact with it. In this chapter we will add user interaction to our game. The following topics will be covered within this chapter:
Understanding the Event Dispatcher mechanism
Handling the touch event
Handling the accelerometer events
Keeping the screen alive
Handling the Android back key pressed event