Skip to content

retroredge/python-asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pythentic Asteroids

A Python / Pygame version of Atari's 1979 classic Asteroids arcade game.

Title screen

Requirements

  • Python 3
  • Pygame 2

To Run

./start-game.sh

or

cd src
python3 asteroids.py

Controls

  • Start game : Enter
  • Rotate Left : Left arrow or Z
  • Rotate Right : Right arrow or X
  • Thrust : Up arrow or N
  • Fire : Space or M
  • Hyperspace : H
  • Pause : P
  • Frame advance whilst paused : O
  • Quit : Esc

Features

  • Pixel perfect collision detection
  • Authentic asteroids shapes
  • Small and large saucers
  • Full screen
  • Fading explosion debris
  • Engine thrust jet
  • Extra life at 10,000
  • Hyperspace

Collision Detection

If a bounding box collision occurs between the sprites then extra checks are made to determine if there are any intersections between line segments that make up each sprite. The intersecting line checks can be found in the geometry.py source file.

Pygame page

The Pygame project page for this game can be found here.

Pygame setup on OSX

python3 -m pip install pygame

About

A Python / Pygame version of the classic 1979 arcade game

Topics

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published