This is my side project or hobby game that i made. A simple clicker game made with Python and Pygame. You click a big glowing rock, it gives you a random material (soil, iron, copper, silver, gold, diamond, or ruby), and you rack up points. Watch out for uranium though — that one costs you points.
- Python 3 installed
- Pygame installed
If you don't have Pygame yet, install it with:
pip install pygame
- Make sure
metal_clicker.pyand theresfolder are in the same place. - Open a terminal in that folder.
- Run:
python metal_clicker.py
That's it, the game window should pop up.
The game looks for its images and sounds inside a folder called res (short for "resources"), sitting right next to the game file. If a file is missing, the game won't crash — it'll just fall back to a plain colored circle or play no sound for that item.
Here's what the game expects to find in there:
Images:
background.jpgSOIL.pngCOPPER.pngSILVER.pngGOLD.pngDAIM.png(diamond)RUBY.pnguranium.png
Sounds:
Background.mp3(background music)soil.waviron.wavcopper.wavgold(and others).wav(used for gold, diamond, and ruby)FAIL.wav(plays when you hit uranium)
Just click the glowing rock in the middle of the screen. Every click gives you a random drop based on its rarity — common stuff like soil and iron shows up a lot, while diamonds and rubies are rare and worth way more points. Uranium is a trap: it takes points away and breaks your streak.
| Key / Action | What it does |
|---|---|
| Left click on the rock | Mine it |
M |
Turn background music on/off |
R |
Restart the run |
Esc |
Pause / go back |
- Score — your current points
- Best — your highest score ever, saved automatically to a file called
best_score.txt - Clicks — total number of times you've clicked
- Streak — how many good drops in a row (resets if you hit uranium)
- Loot Table — shows the drop chance for every item, so you know your odds
- Your best score is saved locally in
best_score.txt, right next to the game file, so it'll still be there next time you open the game. - The window is a fixed size (1400x820), it doesn't resize.