Welcome to the Tom and Jerry game! This project is an Android application featuring exciting gameplay with Tom and Jerry, incorporating multithreading, maps, media playback, location services, and sensors.
-
Multithreading:
- Utilizes
ExecutorServiceandThreadfor managing game updates on a separate thread from the main UI thread. - Ensures smooth and responsive gameplay by offloading intensive operations.
- Utilizes
-
Maps API:
- Integrates Google Maps to display locations associated with scores.
- When a score is clicked, the corresponding latitude and longitude are sent to a map, updating it to show the new location.
-
Splash API:
- Implements a splash screen to enhance user experience during the app launch.
-
MediaPlayer:
- Manages sound effects using the
MediaPlayerclass. - Includes functionality to play, pause, and release sounds efficiently.
- Manages sound effects using the
-
Location (FusedLocationProvider):
- Uses
FusedLocationProviderClientto get the device's location. - Provides accurate and efficient location updates for in-game features.
- Uses
-
Sensors:
- Incorporates device sensors for interactive gameplay elements.
- The game logic runs on a separate thread using
Thread. This ensures the main UI thread remains responsive.
- The game includes a feature to display scores with associated locations on a map. Clicking a score updates the map to show the relevant latitude and longitude.
- A splash screen is displayed when the app launches, providing a smooth transition into the game.
- The
MyMediaPlayerclass manages sound effects. It includes methods to play, pause, and release sounds, ensuring efficient memory usage.
- The
MyLocationManagerclass retrieves the device's last known location usingFusedLocationProviderClient.
- The game interacts with device sensors to enhance gameplay.
For a video demonstration of the game, click here.
- Special thanks to the open-source community for providing various libraries and tools used in this project.
For any questions or support, please contact aviad825@gmail.com.
Note: This project is for personal use only.
Enjoy the game!