Asteroids

Justin Onstine
wildone@cats.ucsc.edu
CS 160 Final Project - Spring 2001

Introduction

I chose to create a remake of the classic game "Asteroids."  In this game, the player controls a space ship (in this case, the Starship Enterprise) and must destroy all of the Earth-bound asteroids before they destroy mankind.  At the player's disposal are phazors, and not much else.
 

Implementation Strategy

In order to complete this assignment in a timely manner, I chose to work slowly through each step and ensure that it worked the best that I could make it before moving on to a new challenge.  Here is what I was able to complete in the time given:


How to Play

Before play can begin, the user must type in the program name from the prompt:

>asteroids

From there, the user will be prompted to enter a seed for the random number generator used so heavily in this program.  This was absolutely necessary so that you don't play the same configuration every time.

Up Arrow - moves the player in the direction they are facing

Down Arrow - applies reverse thrusters and moves the player in the opposite direction that they are facing

Right Arrow - rotates the player clockwise (I think)

Left Arrow - opposite of the right arrow

Space Bar - fire phazers


Comments

I really enjoyed writing this program.  I wish I had more time to incorporate some of my ideas that didn't make the cut.  Towards the end I started toying with perspective viewing and trailing behind the player's ship as he turned and shot the asteroids, but this proved to be too much work for the little time that I had left.  I plan on continuing this project even though the quarter is over.  Thanks to Jonathan for all his help at the end.

wildone@cats.ucsc.edu