An idle/clicker game built with raylib (Python bindings). Inspired by Adventure Capitalist, but with an energy production theme — start dirty, go clean.
You begin with coal, clicking your way through smog.
Diversify into renewables and watch your pollution drop.
Click the big green button to generate energy manually. Use that energy to buy and upgrade power sources on the right panel.
| Source | Base Power | Pollution | Unlock Cost |
|---|---|---|---|
| Coal Plant | 1/s | 10 (Very Dirty) | Free |
| Oil Rig | 5/s | 8 (Very Dirty) | 50 |
| Natural Gas | 20/s | 5 (Dirty) | 300 |
| Solar Farm | 60/s | 1 (Clean) | 1,500 |
| Wind Turbine | 150/s | 1 (Clean) | 6,000 |
| Hydroelectric | 400/s | 2 (Moderate) | 25,000 |
| Nuclear Fission | 1,200/s | 3 (Moderate) | 80,000 |
| Nuclear Fusion | 5,000/s | 0 (Zero Emission) | 400,000 |
- Each level of a source increases its energy output
- Costs scale by 1.15x per level
- The pollution meter shows your weighted average — invest in clean energy to bring it down
- Upgrade your click power with the button at the bottom-left
Build an energy empire that's both powerful and clean. The ultimate achievement is running entirely on Nuclear Fusion with zero pollution.
raylib_clicker/
├── main.py # Entry point: window, audio, input, game loop
├── game.py # Game state and logic (no graphics dependencies)
├── draw.py # All rendering code (raylib drawing functions)
├── data/
│ └── sources.json # Energy source definitions (balance, costs, pollution)
├── assets/
│ └── ambient.mp3 # Background music
├── screenshot.py # Utility to generate README screenshots
└── screenshots/ # README images
game.pyis fully independent of raylib — pure Python game logic that could be reused with any rendererdraw.pyhandles all rendering and layout constantsdata/sources.jsonlets you tweak game balance (add sources, change costs/pollution) without touching code
pip install raylib
python main.pyRequires Python 3.8+ and a desktop environment with OpenGL support.
- Ambient Music: "Mysterious Ambience (song21)" by pixelsphere.org — OpenGameArt (CC0 / Public Domain)

