I decided the world needed another Break Out clone!
Some of the things I experimented with in this code include:
- No semicolons (controversial, for sure… oh, and no empty parens when calling constructors)
- The Spread and Rest operators
- Expression bodies and Statement bodies rather than anonymous functions
- Classes instead of functions and prototypes
- Sets and Maps instead of arrays and objects
- The HTML audio element
As everything is loaded through a module script tag this means that, currently, Breakanoid will only work in a few browsers, which, surprisingly, doesn’t include FireFox. The latest version of Chrome is a safe bet. Apart from the sound, it works reasonably well on mobile devices, too.
It’s not quite finished (there’s only one playable level at the moment) but it is quite fun. The code isn’t optimised, so there is the occasional slowdown when garbage collection kicks in, but I have a plan for that and I’ll be improving the code in the future.
While I wrote the code, the sounds, music, and the fonts are from various sources, which can be found in the credits.