Skip to content

ruby1113/crypto-catch-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Catch (Java)

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)

How to play

  • ← / →: 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.

Requirements

  • Java 17+
  • Maven 3.8+

Run locally

mvn -B clean package
java -jar target/crypto-game-1.0.0.jar

Build & test

mvn -B verify

GitHub Actions (CI)

This 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.

Project layout

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

Packaging

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

Advanced tweaks

  • Tune difficulty by changing spawnIntervalMs, fallSpeed, and maxEntities in GamePanel.
  • Adjust window size in CryptoCatchGame.WIDTH/HEIGHT.
  • Replace the drawn shapes with images if you want custom sprites.

License

MIT

About

Complete Java Swing crypto game (with visuals).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.4%
  • Other 1.6%