/space-invaders-htcsd

A fully-tested, fully-modular version of space invaders built with Racket, a modern dialect of Lisp.

A fully-tested, fully-modular version of space invaders built with Racket, a modern dialect of Lisp.

Preview

2024-01-02 16-41-10.gif

Getting Started

  1. Install racket from here.
  2. Open .rkt file
  3. Press Run Imgur
  4. Start the game by typing (main GAME-START) in the DrRacket console and press Enter Imgur

If you need any additional info for installation you could check the docs from here.

Project Structure

  • domain-analysis.pdf: the domain analysis of the program.
  • functions.txt: a list of the program functions.
  • starter.rkt: the source code.

Domain Analysis

domain analysis according to type of information_page-0001.jpg

domain analysis according to type of information_page-0002.jpg

domain analysis according to type of information_page-0003.jpg

Reflection

Few areas that could be further enhanced for an improved gaming experience:

  1. Limit rate of missile fire so it would require some accuracy hitting invaders.
  2. Add a pause of 3 seconds when the invader reaches the base and make the tank blink (indicating death) so the user can look at his failure better 😈.
  3. Increase invade rate as time goes by. Display a level number with each invade rate increment. Start the gameplay with 'Level 1'.

Disclaimer

This program represents the culminating project of the How to code - simple data course, the 1st of 6 of Software Development Micromasters Program offered by UBC. Check it out here.