Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrofnseca/asteroids
https://github.com/pedrofnseca/asteroids
game javascript javascript-game p5js
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedrofnseca/asteroids
- Owner: PedroFnseca
- Created: 2024-04-06T19:35:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-14T01:32:22.000Z (7 months ago)
- Last Synced: 2024-04-14T16:44:10.314Z (7 months ago)
- Topics: game, javascript, javascript-game, p5js
- Language: JavaScript
- Homepage: https://pedrofnseca.github.io/asteroids/
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# [Asteroids Game](https://pedrofnseca.github.io/asteroids/) 🚀🌑
Welcome to Asteroids, the most exciting and fun space adventure game! Here, you'll navigate through the vastness of space, dodging and blasting asteroids to survive. It's a game of skill, precision, and a bit of luck. Ready to embark on this thrilling journey? Let's get started!
---
## How to destroy the asteroids? 🌌
- Navigate your spaceship: Use the arrow or WASD keys to move your spaceship around. Be careful not to hit the asteroids!- Blast the asteroids: Press the spacebar to shoot. Aim at the asteroids and blast them into smithereens!
- Survive: The longer you survive and the more asteroids you blast, the higher your score. Aim for the stars (pun intended)!
- Game Over: The game ends when you collide with an asteroid. Your final score will be displayed. Try again and beat your high score!
## Have Fun and Enjoy! 🎮🌌
Disclaimer: Asteroids is not responsible for any addiction that may occur due to excessive playing. Play responsibly!### [Play the Game](https://pedrofnseca.github.io/asteroids/) 🚀🌑
---
## Technical details
Asteroids is built using a combination of pure JavaScript and the [p5.js](https://p5js.org/) library (and Maizena).
[p5.js](https://p5js.org/) is a JavaScript library that starts with the original goal of Processing, to make coding accessible for artists, designers, educators, and beginners, and reinterprets this for today's web. I use p5.js for rendering the game graphics, handling collisions (with some math), and creating an overall visually appealing
And lastly, Maizena. It's not a programming language or a library, it's our secret ingredient! 🌽🌽🌽