Skip to content

chandravaran/Asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Asteroids

This repo contains code for playing the asteroid game. It can only be run on Turbo C++. The keyboard is used to move the spaceship around. The position of the asteroids coming down is generated using a random generator, but as the code is rerun systematically, a pattern arises in the location of the asteroids.

Game preview

Controls are:
a - move left
d - move right
space - shot

The score and some instructions can be seen on the right side of the screen. The mouse can only move around in the right section. There are two ways to exit the program: you can move your cursor to the bottom box and click or press ESC directly. The game has two levels currently. In the second level, the asteroids come down faster.

About

The is small game based on the old spaceship game #asteroids-game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages