An open API service indexing awesome lists of open source software.

https://github.com/noor188/space-invaders

The design of the classic arcade game space invaders
https://github.com/noor188/space-invaders

functional-programming system-design

Last synced: 2 months ago
JSON representation

The design of the classic arcade game space invaders

Awesome Lists containing this project

README

          

# Space-Invaders
The design of the classic arcade game space invaders

# Learning goal:
learned a systematic programming method rather than a programming language. This practical approach helped me channel my creativity so that I can program well in any language.

# Design

This Space Invaders game have the following behaviour:

1. The tank moves right and left at the bottom of the screen when you press the arrow keys. If you press the left arrow key, it will continue to move left at a constant speed until you press the right arrow key.
2. The tank fires missiles straight up from its current position when you press the space bar.
3. The invaders appear randomly along the top of the screen and move at a 45 degree angle. When they hit a wall they bounce off and continue at a 45 degree angle in the other direction.
4. When an invader reaches the bottom of the screen, the game is over.

-------------------------------------------------------------------------------------------

# What the game looks like during play:
![](https://github.com/noor188/Space-Invaders/blob/main/img/space-invader.png)