๐ช CoinMan
CoinMan is a simple and addictive 2D arcade-style game built using LibGDX, where the player controls a running character who collects coins and avoids bombs. The game showcases basic game development principles such as sprite animation, collision detection, scoring, and persistent high scores.
๐ฎ Gameplay Overview
Tap the screen to make the character jump.
Collect coins to increase your score.
Avoid bombs โ hitting one ends the game.
The game keeps track of your high score using LibGDX's Preferences system.
๐ ๏ธ Tech Stack
Language: Java
Framework: LibGDX
Audio: .mp3 files played using LibGDX's audio API
Graphics: PNG textures for characters, bombs, coins, background
๐ง Features
๐งโโ๏ธ Sprite animation for the player
๐ฅ Collision detection using rectangles and Intersector
๐ Score and high score tracking using Preferences
๐ Integrated sound effects
๐จ Physics-based jump system using gravity and velocity
๐พ Persistent high score between sessions
๐ How to Run
Install LibGDX setup tools (via gdx-setup.jar).
Import the project into your preferred Java IDE (like IntelliJ or Eclipse).
Ensure assets are placed in the correct android/assets/ or equivalent directory.
Run the application from the desktop launcher or Android emulator/device.
๐ฑ Controls
Tap screen / Click mouse โ Make the character jump
๐ Notes
Sound is played each frame โ you might want to optimize by only playing on events.
Asset loading is currently done in create() method โ for larger projects, consider using AssetManager.
๐ License
This project is open-source and free to use for educational purposes. Attribution appreciated!