Civilization is on the brink of extinction as a colossal meteor shower descends. Operate Earth's air-defense system to intercept the incoming meteorites, while aiming for a high score!
Gameplay:
You fire missiles by tapping anywhere on the bottom half of the screen. Each tap launches a missile that detonates at the mirrored position on the upper half of the screen soon after.
The challenge is timing and precision: you must tap the correct spot on the lower screen so the mirrored blast lines up with the incoming meteorites before they hit the ground. Earth can only survive a few meteor strikes. There is a green bar in the center of the screen showing the remaining health - the game is over if the green bar runs out. Firing missiles costs a small fraction of health, while destroying meteorites restores a bigger chunk of health depending on how accurate you are, so try to keep your fire to a minimum and aim to destroy multiple meteors with one shot for best impact. You can launch bigger but slower missiles by holding the tap for about a second.
Controls:
Click / Tap on the bottom half of the screen to fire missiles. The point of detonation of each missile depends on the launch placement in a mirror-like manner, e.g. if you launch a missile from the bottom left corner of the screen, the missile will detonate in the top left corner.
Click / Tap + Hold to charge and fire a bigger, more powerful, but slower missile - useful for destroying multiple meteorites at once.
Combo bonus chart:
2 meteors: 32 points
3 meteors: 243 points
4 meteors: 1 024 points
5 meteors: 3 125 points
6 meteors: 7 776 points
7 meteors: 16 807 points
8 meteors: 32 768 points
9 meteors: 59 049 points
10 meteors: 100 000 points
Notes:
Earth Defender is a
Submission in JS1024 competition 2022 with theme "Mirror". The game is just 1 kilobyte, coded in pure ES6 Javascript and minified with Terser / Regpack. Development was a lot of fun. Big thanks to the organizer of the jam for the responsiveness and for adding a few details to the shim to provide a more mobile-friendly environment. Cheers!