Skip to content

andrewpols/space-invaders-pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders

Screenshot 2024-01-03 at 3 00 31 AM

Background

  • This program recreates the iconic Space Invaders game using Python and Pygame.
  • Through Pygbag, a Python WebAssembly package, this code is available on non-local servers (it is ran through the index.html and apk file shown in the root directory).
  • The source code can be found in the src folder in the root directory (Note: The index.html file in the root directory is NOT part of the original souce code—it is built through Pygbag). The main loop of the main.py file is AsyncIO-aware for Pygbag to build it into an accesible file.
  • Play now via GitHub Pages

Aim of the Game

  • Starting with 3 lives, survive and kill all aliens!
  • Each alien awards 100 points, while every hit taken from an alien loses a life.
  • A bonus alien will periodically fly at the top of the screen. Hit it for extra points and an extra life.
  • Once you're done, play again.

Controls

  • Move Left/Right: L/R Arrow Keys
  • Shoot: Spacebar

About

Space Invaders recreation made in Python (using Pygame, AsyncIO, & Pygbag).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published