/starship

3D Spaceship asteroid shooting game implemented with WebGL

Primary LanguageJavaScript

Starship

Final project for the Fundamentals of Computer Graphics subject of the University of Buenos Aires.

starship

Gameplay

Infinite 3D Asteroids-like game. The player controls a ship that infinitely moves forward dodging asteroids. Control the ship with the arrow keys and fire a laser with the spacebar. The game ends when the ship is hit.

Features

  • WebGL graphics pipeline:
    • Rasterizer
    • Directional lightning
    • .obj model renderer
  • AABB collisions, visual representations of the boxes are shown
  • Simple object pooling (stars)

How to run

  1. Run python3 -m http.server (alternative hosting solutions should be equivalent, this is needed to access the game's assets)
  2. Access localhost:8000
  3. Game is started automatically
  4. Upon finishing, restart tab to play again