Skip to content

quaat/ai_space_invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Generated Space Invaders

This repository contains the source code for a custom Space Invaders game, created using Python and the Pygame library. The game is inspired by the classic Space Invaders arcade game, featuring a unique design, challenging gameplay, and nostalgic sound effects. The game was genereated using ChatGPT-4. Graphics was generated using MidJourney. See backstory for the ChatGPT dialog.

Table of Contents

Installation

  1. Ensure you have Python 3.6 or newer installed on your system. You can check your Python version by running python --version in your command prompt or terminal.

  2. Install the Pygame library using the following command:

pip install pygame
  1. Clone this repository to your local machine:
git clone https://github.com/quaat/ai_space_invaders.git
  1. Navigate to the project directory:
cd ai-space-invaders

Usage

To start the game, run the following command from within the project directory:

python invaders.py

Use the arrow keys to move your spaceship left and right, and press the spacebar to shoot at the alien invaders. Earn points by shooting down alien ships and survive as long as possible!

Features

  • Alien invaders moving horizontally and gradually descending towards the player's spaceship
  • Player spaceship movement and shooting controls
  • Welcome screen with the option to start the game or exit
  • Resizable images and game elements
  • Shields to protect the player's spaceship
  • Sound effects for shooting, hitting alien ships, and player death
  • Fullscreen mode toggling
  • Increasing difficulty as the game progresses

Contributing

Contributions are welcome! If you have any ideas or suggestions to improve the game, feel free to create an issue or submit a pull request.

  1. Fork the repository
  2. Create a new branch with a descriptive name (e.g., git checkout -b feature/new-alien-type)
  3. Commit your changes (e.g., git commit -m "Add a new alien type")
  4. Push your changes to the branch (e.g., git push origin feature/new-alien-type)
  5. Create a pull request

License

This project is licensed under the eMIT License. See the LICENSE file for more information.

Acknowledgement

The sound effects are from the classic arcade game Space Invaders released in 1978 by Taito.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages