3 ms·
The arcade-style computer games of 1980s played a big role in getting me fascinated about computers. Last year, I wrote this game on a weekend to fulfill a chil
by susam 4y ago
The arcade-style computer games of 1980s played a big role in getting me fascinated about computers. Last year, I wrote this game on a weekend to fulfill a childhood dream of writing my own invaders-like 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 https://github.com/susam/invaders for source code.
The levels appear to get very hard very quickly but my friends who initially played this game were able to reach up to level 5 with some practice and then level 10 or so after some attempts. I could reach level 11 after a week of playing (https://i.imgur.com/c0twMr4.png https://i.imgur.com/c0twMr4.png). I have found that in the later levels, it is best to play each level in two phases: First focus only on avoiding the falling boulders. Try to find regions where there are less invaders hovering and try to be there. After some of the invaders vanish by fluke hits and the level becomes easier, play normally.
- sbarre 4y agoPressing Enter as a key that gets you to the credits but then also restarts the game is a bummer. I was on L4 and hit Enter accidentally and it reset my game. :-(
- password4321 4y agoNice work. Next up: multiplayer!
- acidburnNSA 4y agoThis is great. Reading the source reminds me of reading the game programming (in C) books I read as a kid. Thanks!
- uxcolumbo 4y agoI managed to get to Level 10 after the 3rd try. I'm using Firefox, not sure whether it's easier (slower) on Firefox? P.S. surprisingly fun game. Now it needs a leader board to go viral ;) You also seem to be interested in Lisp - maybe do a version in ClojureScript.