Skip to content

qu-ngx/Asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asteroids

drawing

If you have any question, please contact project's owner at [email protected].

  • SCROLL DOWN TO SEE HOW TO PLAY THE GAME

Asteroids is a game developed by Quang D. Nguyen (qu-ngx). The game was written in C/C++ as Major Project for my Data Structure Class Spring 2024 at DePauw University and then converted into WebAssembly to deploy on cloud.

If you are on your desktops or laptops, please feel free to try out my game ^^

Implementations:

  • This game was inspired by how the normal ways objects are managed in OOP manners
  • Stack was made to store all the Bullet objects in the game, attaining the simplicity and fast retrival of O(1) when popping / using a bullet
  • Array was made to store all the Asteroids objects, which keeps it maintainable for unchanged sized and fixed attributes. Memory usage: O(N)
  • Vectors and Geometry were also utilized in the game to detect collisions, bullet contact and ship navigation.

How To Play?

  • Ship Navigation: Hold your left/right mouse clicks to navigate the ship. Release to float the ship

  • Shooting: Left click spam to fire bullets.

Gameplay

  • Asteroids Doppleganger: Beware that all asteroids will split into small fragments in 4 directions

  • Pause the game: Click P to PAUSE the game.

  • Brought down by Asteroids rain?: Happened to die? Click R to RESTART

About

classic asteroids game built with stack and arrayList

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published