Space Invaders game in single (~4KB Gzipped) JavaScript file!
Checkout index.html
for additional styles.
<div id="game"></div>
<script type="module">
const { startGame } = await import("https://cdn.jsdelivr.net/gh/pi0/space-invaders/index.js");
startGame({ selector: "#game" });
</script>
MIT - Pooya Parsa [email protected]
Based on a codepen by Anthony Del Ciotto (@adelciotto)