8000 GitHub - andreas-bergstrom/asteroids: Asteroids-clone based on pygame-ce
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andreas-bergstrom/asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Description

Overview

This game is a space-themed arcade shooter where players control a spaceship navigating through an asteroid field. The objective is to survive as long as possible by avoiding collisions with asteroids and shooting them down to earn points.

Game Mechanics

  • Spaceship Movement: The spaceship can rotate and thrust forward. Players use arrow keys for rotation and acceleration.
  • Asteroid Spawning: Asteroids appear randomly and move across the screen. They vary in size and speed.
  • Collision Detection: The game detects collisions between the spaceship and asteroids, as well as bullets and asteroids.
  • Scoring System: Players earn points by destroying asteroids with bullets.

Controls

  • Arrow Keys: Rotate and accelerate the spaceship.
  • Space Bar: Shoot bullets.

Code Structure

  • Spaceship Class: Manages the spaceship's position, movement, and rendering.
  • Asteroid Class: Handles asteroid properties, movement, and collision detection.
  • Bullet Class: Manages bullet trajectory and collision with asteroids.

About

Asteroids-clone based on pygame-ce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0