Skip to content

Alishba-Sheikh-codes/Python-Game-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Spaceship World - Pygame

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.


๐ŸŽฎ Gameplay Features

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

๐Ÿ› ๏ธ Setup & How to Play

๐Ÿ”ง Prerequisites

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.

About

python game project including required python libraries; the game includes an airplane and the goal of the game is to maximize score by keeping itself safe from obstacles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages