Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShooTar

Overview

ShooTar is a basic shooter game developed in Python using the Pygame library. This project serves as an introduction to game development and showcases various game mechanics, including enemy AI, power-ups, and level management.

Features

  • Basic 2D shooter gameplay
  • Multiple levels and enemies
  • Power-ups to enhance gameplay
  • High score tracking and achievements
  • Sound effects and background music

Prerequisites

Before running the game, ensure that you have the following installed:

  • Python (version X.X or higher)
  • Pygame library

You can install Pygame using pip:

pip install pygame

Running the Game

To start the game, navigate to the project directory in your terminal and run the following command:

python game5.py

File Structure

The project contains the following files and directories:

ShooTar/
│
├── achievements.json          # Stores player achievements
├── audio.py                   # Manages audio playback
├── background.wav             # Background music file
├── background.m4a             # Alternative background music file
├── background.png             # Background image for the game
├── bullet.png                 # Image for the bullet sprite
├── boss.png                   # Image for the boss enemy
├── collision_manager.py       # Handles collision detection
├── config.py                  # Configuration settings for the game
├── enemies.py                 # Enemy class definitions
├── enemy.png                  # Image for a standard enemy
├── enemy2.png                 # Image for a secondary enemy
├── explosion.wav              # Sound effect for explosions
├── effects.py                 # Game effects management
├── game.py                    # Main game loop
├── game2.py                   # Alternative version of the game
├── game3.py                   # Another version of the game
├── game4.py                   # Yet another version of the game
├── game5.py                   # Final version of the game
├── game_engine.py             # Core game engine logic
├── game_state.py              # Manages game state transitions
├── highscores.json            # Stores high score data
├── level_manager.py           # Manages game levels
├── levels.py                  # Level design and logic
├── LICENSE                    # License information
├── player.png                 # Image for player character
├── player.py                  # Player character logic
├── powerup.png                # Image for power-up items
├── powerup.wav                # Sound effect for power-ups
├── progress.json              # Saves player progress
├── saves/                     # Directory for saved games
├── shoot.mp3                  # Sound effect for shooting
├── shoot.wav                  # Alternative sound effect for shooting
├── sprite_groups.py           # Manages sprite groups
├── sound_manager.py           # Handles sound effects
├── ui_manager.py              # Manages the user interface
├── utils.py                   # Utility functions
└── error_log.txt              # Logs errors for debugging

Contribution

Feel free to contribute to this project by submitting issues, feature requests, or pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any inquiries or feedback, please reach out to Rabboni_Kabongo.

Enjoy playing ShooTar!

About

my first python game in pygame

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages