Skip to content

๐Ÿช™ CoinMan is a fun 2D arcade game built with LibGDX where you collect coins, dodge bombs, and aim for the highest score! Features sprite animation, collision detection, gravity physics, and persistent high scores. Perfect for learning the basics of game development in Java.

Notifications You must be signed in to change notification settings

Developer668/Coin-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿช™ 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!

About

๐Ÿช™ CoinMan is a fun 2D arcade game built with LibGDX where you collect coins, dodge bombs, and aim for the highest score! Features sprite animation, collision detection, gravity physics, and persistent high scores. Perfect for learning the basics of game development in Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages