A tiny, fun crypto-themed arcade game written in pure Java 17 + Swing. Move your ledger left/right, catch the falling ₿ coins, and dodge bombs. Rack up score before you run out of lives!
https://user-images.githubusercontent.com/ (placeholder for your GIF/screenshot)
- ← / →: Move left/right
- P: Pause/Resume
- R: Restart after game over
- Catch coins (+1 point). Hit a bomb and you lose a life. You have 3 lives.
- Java 17+
- Maven 3.8+
mvn -B clean package
java -jar target/crypto-game-1.0.0.jarmvn -B verifyThis repo includes a workflow that runs on pushes and PRs:
- compiles the project (Java 17)
- runs tests
- builds the runnable JAR
See .github/workflows/maven.yml.
crypto-catch-java/
├─ src/
│ ├─ main/java/com/example/cryptocatch/
│ │ ├─ CryptoCatchGame.java (entry point)
│ │ ├─ GamePanel.java (game loop & rendering)
│ │ ├─ Entity.java (base class)
│ │ ├─ Player.java (the player)
│ │ ├─ Coin.java (collectible)
│ │ └─ Bomb.java (hazard)
│ └─ test/java/com/example/cryptocatch/
│ └─ CollisionTest.java
├─ .github/workflows/maven.yml (CI)
├─ pom.xml
├─ .gitignore
├─ run.sh (helper script)
└─ run.bat
The JAR manifest already sets the Main-Class, so you can run it directly.
To create a zip of the repo for sharing:
git archive -o crypto-catch-java.zip HEAD- Tune difficulty by changing
spawnIntervalMs,fallSpeed, andmaxEntitiesinGamePanel. - Adjust window size in
CryptoCatchGame.WIDTH/HEIGHT. - Replace the drawn shapes with images if you want custom sprites.
MIT