Chapter 5. Basic Interactions
It's time to learn how to make the game interactive. In this chapter, we will first see how to create a basic animation that will allow us to move the character from one place to another. We will also learn the basics of collision detection.
Then, we will look into the different sensors that Android devices have, how to read them, and how to use those readings. More specifically, we are going to use the touchscreen and accelerometer, and we will use them to move the main character around the screen.
The second part of this chapter will cover the specifics of different threads used in AndEngine in detail. We will discuss the dangers of mixing threads and common mistakes made by beginners to AndEngine.
A simple animation ...
Get Learning AndEngine 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.