This repository contains a Python implementation of the popular mobile game Color Switch using the Pygame library. The game replicates the core mechanics of the original Color Switch, with exciting features such as rotating obstacles, color-changing power-ups, and collision detection.
- Opening Screen: A visually appealing opening screen to start the game.
- Smooth Gameplay Mechanics:
- Press the
Spacebarto make the ball move up. - Navigate through rotating obstacles made of arcs, built and animated using Pygame's built-in features.
- Press the
- Obstacles:
- Rotating Circle: A circular obstacle with four rotating arcs.
- Circle in Circle: A challenging nested circle obstacle.
- Stacking Circles: A vertical stack of circular arcs.
- More obstacles will be added in future updates.
- Color Changer Power-Up: Randomly changes the ball's color, adding a dynamic twist to the gameplay.
- Game Over Screen: A distinct game-over screen to restart or exit the game.
- Collision Detection: Accurate detection for ball-obstacle collisions.
- Scrolling Effect: As the player covers a set max distance, all the obstacles move down a constant value.
- Random Respawn and deletion: The obstacles randomly respawn and are deleted once they are off-screen.
- Press the Spacebar to make the ball move upwards.
- Navigate through the obstacles by matching the ball's color with the obstacle's color.
- Collect the color changer power-up to randomly change the ball's color.
- Avoid collisions with mismatched colors to survive and score higher!
| Key | Action |
|---|---|
Spacebar |
Move the ball upward |
This game is built using the Pygame library. Please ensure you have Pygame installed before running the game.
- Clone or download this repository.
- Ensure all the code files and assets (e.g., images, sounds) are in the same folder.
- Run the Color_Switch.py file





