Asteroids in P5.js

Published on 2020-12-18 by David Norton

Back in 2018 I wrote an Asteroids clone using P5.js. (code is here, play it here.)

The code was written in Javascript.

I was inspired to create it mostly because I was tired of beating my head against the wall trying to come up with "the next big thing" to do for a side project.

Additionally, I realized the following:

Thus, making '80s video game clones might be a good way to keep me on my toes and coding interesting problems in my spare time.


Neat things I ran into working on this project:

Screenshot of the game:

screenshot of my asteroids clone

Footnotes:

Some suggested inspirational talks:

Further quick looks at array splice performance by others:

https://www.freecodecamp.org/news/lets-clear-up-the-confusion-around-the-slice-splice-split-methods-in-javascript-8ba3266c29ae/

https://medium.com/javascript-in-plain-english/how-to-remove-a-specific-item-from-an-array-in-javascript-a49b108404c