Git Product home page Git Product logo

c-asteroids's Introduction

Noah Attwood
Asteroids
Summer 2018


============ Compiling ============

the program can be compiled with the following command:
gcc -o asteroids.o asteroids.c -lGL -lGLU -lglut -lm



============= Running =============

please run the program with the following command:
./asteroids.o



============ Gameplay =============

The asteroids game starts in a "safe" mode where no asteroids are generated. The ship can be controlled while in this mode.
The game makes use of the following keys:

s - start the game (when in the safe mode)
c - switch from using polgonal asteroids to circular asteroids and back again
p - pause the game
q - quit the game

space - fire a photon laser shot
arrow keys - control the ship


When the ship is destroyed, it is respawned in the center of the screen with a few seconds of invincibility. The ship 
flashes while the invincibility is active to convey this status to the player.



========== Future Plans ==========

The "safe" mode was planned to be a main menu screen where the user could choose options by shooting photons at onscreen text,
such as "start game", and "controls". I hope to implement this functionality later on. 

Additionally, dust particle generation upon asteroid and ship destruction was not implemented in this version. This is something
that would have added to the sense of quality of the game. I hope to add this feature later. 

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.