Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Metal Clicker

image

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.

What you need

  • Python 3 installed
  • Pygame installed

If you don't have Pygame yet, install it with:

pip install pygame

How to run it

  1. Make sure metal_clicker.py and the res folder are in the same place.
  2. Open a terminal in that folder.
  3. Run:
python metal_clicker.py

That's it, the game window should pop up.

The res folder

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.jpg
  • SOIL.png
  • COPPER.png
  • SILVER.png
  • GOLD.png
  • DAIM.png (diamond)
  • RUBY.png
  • uranium.png

Sounds:

  • Background.mp3 (background music)
  • soil.wav
  • iron.wav
  • copper.wav
  • gold(and others).wav (used for gold, diamond, and ruby)
  • FAIL.wav (plays when you hit uranium)

How to play

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.

Controls

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

What's on screen

  • 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

Notes

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

About

A metal clicker game made using pygame

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages