A 2D arcade-style game where you pilot an airplane through a sky filled with clouds and falling obstacles. The game is built using Python's Pygame library and demonstrates basic game development concepts like sprite handling, collision detection, and dynamic difficulty.
- Player Control โ Use arrow keys to fly the airplane through obstacles
- Dynamic Obstacles โ Avoid randomly generated falling objects that increase in speed over time
- Cloud Environment โ Adds visual depth and motion to the sky
- Score System โ Points increase as you dodge obstacles
- Game Over Screen โ Final score displayed after collision
- User Interface โ Score display and instructional messages on screen
- (Sound system placeholder for future updates)
Make sure Python 3.x and Pygame are installed. To install Pygame:
pip install pygame
Keep all files in the same folder as game.by.alishba.py:
game.by.alishba.py โ main game script
airplane.png โ player sprite
obstacle.png โ falling object
cloud.png โ background cloud visuals
spaceship.png โ game window icon
gameover.jpg โ image shown after a collision
โถ๏ธ Running the Game
In the terminal or command prompt, navigate to the project directory and run:
python game.by.alishba.py
๐ฎ Controls
โ Left Arrow โ Move left
โ Right Arrow โ Move right
โ Up Arrow โ Move up & speed up obstacles
๐ง How It Works
Game Initialization โ Loads Pygame modules, display window, and assets
Sprite Management โ Airplane, obstacles, and clouds are updated every frame
Movement & Collision โ Real-time updates and collision detection using distance checks
Score Tracking โ Score increments as obstacles pass
Game Loop โ Runs frame-by-frame updates, rendering, input handling, and logic
Game Over โ Triggered upon collision and displays final score
๐ Future Improvements
Sound effects and background music
Power-ups (shield, score boost, etc.)
Difficulty levels (easy, medium, hard)
High score saving system
Menu UI for game start and settings
More visual polish and obstacle types
๐ฉโ๐ป Author
Developed with ๐ป by Alishba.
๐ License
This project is open-source and free to use for educational or personal purposes.