Hacker GitHub

← All repos

susam/invaders

View on GitHub ↗ ★ 181 HTML

A 1980s-arcade-style game written using HTML5, Canvas, and Web Audio

11 mentions on Hacker News by 1 person: 2 stories, 9 comments · first 2022-02-14 · latest 2025-07-25

Mentions per year 11 mentions · busiest year 2024 (4)
20082026
  1. …made it quite easy to get started with developing the game. [1] https://susam.net/invaders.html [2] https://github.com/susam/invaders#why [3] https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API [4]…
    comment by susam · 2025-07-25 · in Celebrating 20 Years of MDN
  2. …is inspired by the four-note loop of the original Space Invaders. Here’s the source code for it: https://github.com/susam/invaders/blob/0.9.0/invaders.html#L...
    comment by susam · 2025-03-12 · in Space Invaders
  3. …I too chose to implement it using plain HTML and JavaScript. I have written more about it here: < https://github.com/susam/invaders#why >. It is very heartwarming to see that we live in an era where computers are pervasive and a 9 year old…
  4. The autopilot algorithm is about a 100 lines of code contained in a single function here: https://github.com/susam/invaders/blob/0.9.0/invaders.html#L... Although the code looks long, the essence of the algorithm is pretty simple. At…
  5. …lines of code that decides the next move of the player. Direct link to the autoMove() source code: https://github.com/susam/invaders/blob/0.9.0/invaders.html#L...
  6. …regarding this thread: I received a pull request that adds pixelated rendering to the game canvas: https://github.com/susam/invaders/pull/4 I have merged it now. Thank you, everyone, for the discussion regarding retro-style rendering on…
  7. …to this that does not add too much complexity to the code, I would love a pull request for it at https://github.com/susam/invaders .
  8. …game. It is a standalone HTML page, so you can view source to see the entire source code. Also, see https://github.com/susam/invaders for source code. The levels appear to get very hard very quickly but my friends who initially played this…
  9. …as a single, standalone HTML file. The game makes use of the Canvas API and the Web Audio API. See https://github.com/susam/invaders for more details. Especially, see the “Technical Details” section of the README for details on graphics…