A Python-based clicking game built with Pygame where players click squares to earn points and unlock upgrades.
- Click squares to earn points
- Score multipliers
- Additive power-ups
- Timer system
- Shop system
- Pause functionality
class GameState():
def __init__(self):
self.state = 'intro'The game features three main states:
- Intro screen with scrolling background
- Main game with clicking mechanics
- Pause screen with resume option
- Basic clicks earn 1 point
- Multiplier upgrades increase points per click
- Additive upgrades give more time
- Shop system for purchasing upgrades
seconds = int((pygame.time.get_ticks() - timer) / 1000)
myTimer = additivenum - seconds- Dynamic timer that counts down
- Can be extended through upgrades
- Pauses during game pause
All game assets were created from scratch using digital art tools.
-
Square Assets
- Regular square for clicking
- Special square variations
- Custom border designs
square = pygame.image.load(r'assets/square.png') special_square = pygame.image.load(r'assets/special square.png') special_square_max = pygame.image.load(r'assets/special square max.png')
-
Cookie Assets
- Regular cookie design
- Special cookie variations
cookie = pygame.image.load(r'assets/cookie.png') special_cookie = pygame.image.load(r'assets/special cookie.png') special_cookie_max = pygame.image.load(r'assets/special cookie max.png')
-
Interface Elements
- Custom cursor
- Shop buttons
- Play/pause buttons
cursor = pygame.image.load(r'assets/cursor.png') pause = pygame.image.load(r'assets/pause.png') play = pygame.image.load(r'assets/play.png')
-
Background Elements
- Main game background
- Scrolling intro background
- Border designs
bg = pygame.image.load(r'assets/backround.png') bg1 = pygame.image.load(r'assets/bg.png') border = pygame.image.load(r'assets/border.png')
- CompassPro for UI text
- MatchupPro for multiplier display
Compass = pygame.font.Font("assets/CompassPro.ttf", 32)
matchup = pygame.font.Font('assets/MatchupPro.ttf', 32)- Clone the Repository
git clone github.com/raghavrat/Hopschotch.git
cd click-game- Install Required Libraries
pip install pygame- Run the Game
python main.py- Left Click: Click squares, buy upgrades
- Mouse Movement: Move cursor
- Any Key: Start game from intro screen
- Click Pause: Pause game
- Click Play: Resume game
-
Additive Upgrade
- Increases timer duration
- Cost increases by 20% each purchase
additivecost = int(additivecost * 1.2) additivenum += 1
-
Multiplier Upgrade
- Increases points per click
- Cost increases by 20% each purchase
multipliercost = int(multipliercost * 1.2) multipliernum += 1
- Python 3.x
- Pygame library
- Assets folder with all required images and fonts
- All visual assets were created using digital art tools
- Pixel-perfect designs for consistent look
- Custom fonts designed for game aesthetics
- Multiple variations of assets for different states