This project is a web-based and docker-hosted version of the iconic "Asteroids" arcade game. It features smooth graphics, particle effects, and responsive controls, all rendered in a browser using HTML5 Canvas and JavaScript hosted in docker.
This project was created as a learning exercise to gain a better understanding of the JavaScript language and the DOM. It also provides a fun and interactive way to play and share the game online. The game was also a great way to experiment with containerization and hosting in Docker.
- Classic "Asteroids" gameplay
- Smooth vector graphics
- Particle effects for explosions and thrust
- Responsive keyboard controls
- Scalable difficulty as the game progresses
- Clone the repository
- Navigate to the project directory
- Run
npm install
to install dependencies
To start the game server:
node src/app.js
Then open your browser and navigate to http://localhost:3000.
Arrow keys
orWASD
to move the shipSpacebar
to shootB
to toggle big bullets
- JavaScript
- HTML5 Canvas
- Node.js
- Express.js
- Docker
This project is licensed under the MIT License - see the LICENSE file for details.