GithubHelp home page GithubHelp logo

the-cosmic-network / asteroids Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bandali0/asteroids

0.0 1.0 0.0 1.4 MB

Simple Asteroids clone in Python, using pygame

License: GNU General Public License v3.0

Python 100.00%

asteroids's Introduction

asteroids

Simple Asteroids clone in Python, using pygame

    _        _                 _     _
   / \   ___| |_ ___ _ __ ___ (_) __| |___
  / _ \ / __| __/ _ \ '__/ _ \| |/ _` / __|
 / ___ \\__ \ ||  __/ | | (_) | | (_| \__ \
/_/   \_\___/\__\___|_|  \___/|_|\__,_|___/

by Amin Bandali

How To Play

To play the game, open a terminal (or command line window) and type:
python game.py

Press Enter a click anywhere on the screen to start the game.

You have 3 lives to begin with (displayed at top left).
Each time a rock hits your spaceship, you lose a life.
You have to avoid rocks.

You begin with a 0 score (displayed at top right corner).

You can move around:

  • use left and right (or "a" and "d" if you're a gamer) to rotate your spaceship
  • use up arrow (or "w") to accelerate.

You can fire missiles using the "space bar".

  • When a missile hits a big rock, it breaks it into two medium sized ones. Your score goes up by 20.
  • When a missile hits a medium sized rock, it breaks it into two small ones. Your score goes up by 50.
  • When a missile hits a small rock, it destroys it completely and your score goes up by 100.

The game gets more difficult for each 20 seconds you survive:

  • One more big rock is added to the screen (they were 4 initially)
  • The radius of rocks being created gets smaller, meaning that they will appear closer to your spaceship.

asteroids's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.