js1024

js1024

Annual JavaScript Golfing Competition

CLOSED. Starts on 1 July

Earth Protector
by FoumartGames
1023/1024 bytes - canvas2d project

Run Demo Minified code Readable code Run Demo (Without Navigation Bar)

W2hdR2FtZXBsYXk6Wy9oXQ0KDQpQcm90ZWN0IEVhcnRoIGJ5IGRlc3Ryb3lpbmcgaW5jb21pbmcgbWV0ZW9yaXRlcyBiZWZvcmUgdGhleSBoaXQgdGhlIGdyb3VuZC4gVHJ5IHRvIGludGVyY2VwdCB0aGUgbWV0ZW9yaXRlcyBtaWQtYWlyIGJ5IGZpcmluZyBtaXNzaWxlcyBhdCB0aGUgcmlnaHQgcGxhY2UgYW5kIHRpbWUuIEVhcnRoIGNhbiBvbmx5IHN1cnZpdmUgYSBmZXcgbWV0ZW9yIHN0cmlrZXMuIFRoZXJlIGlzIGEgZ3JlZW4gYmFyIGluIHRoZSBjZW50ZXIgb2YgdGhlIHNjcmVlbiBzaG93aW5nIHRoZSByZW1haW5pbmcgaGVhbHRoIC0gdGhlIGdhbWUgaXMgb3ZlciB3aGVuIHRoZSBncmVlbiBiYXIgZGlzYXBwZWFycy4gRmlyaW5nIG1pc3NpbGVzIGNvc3RzIGEgc21hbGwgZnJhY3Rpb24gb2YgaGVhbHRoLCB3aGlsZSBkZXN0cm95aW5nIG1ldGVvcml0ZXMgcmVzdG9yZXMgYSBiaWdnZXIgY2h1bmsgb2YgaGVhbHRoIGRlcGVuZGluZyBvbiBob3cgYWNjdXJhdGUgeW91IGFyZSwgc28gdHJ5IHRvIGtlZXAgeW91ciBmaXJlIHRvIGEgbWluaW11bSBhbmQgYWltIHRvIGRlc3Ryb3kgbXVsdGlwbGUgbWV0ZW9ycyB3aXRoIG9uZSBzaG90IGZvciBiZXN0IGltcGFjdC4NCg0KDQpbaF1Db250cm9sczpbL2hdDQoNCltiXUNsaWNrIC8gVGFwWy9iXSBvbiB0aGUgYm90dG9tIGhhbGYgb2YgdGhlIHNjcmVlbiB0byBmaXJlIG1pc3NpbGVzLiBU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W5nIGV4cGVyaWVuY2UuIEJpZyB0aGFua3MgdG8gdGhlIG9yZ2FuaXplciBvZiB0aGUgamFtIGZvciB0aGUgcmVzcG9uc2l2ZW5lc3MgYW5kIGZvciBhZGRpbmcgYSBmZXcgZGV0YWlscyB0byB0aGUgc2hpbSB0byBwcm92aWRlIGEgbW9yZSBtb2JpbGUtZnJpZW5kbHkgZW52aXJvbm1lbnQuIENoZWVycyENCg0KDQpbaF1BdXRob3IgbGlua3M6Wy9oXQ0KDQpXZWJzaXRlOiBbbGlua10gaHR0cHM6Ly93d3cuZm91bWFydGdhbWVzLmNvbS8gWy9saW5rXQ0KR2l0aHViOiBbbGlua10gaHR0cHM6Ly9naXRodWIuY29tL2ZvdW1hcnQgWy9saW5rXQ0KVHdpdHRlcjogW2xpbmtdIGh0dHBzOi8vdHdpdHRlci5jb20vRm91bWFydEdhbWVzIFsvbGlua10=

Ratings

Anonymous participant 76/100: Interesting idea!
Anonymous participant 87/100: no comment
Anonymous participant 50/100: ok
Anonymous participant 55/100: no comment
Anonymous participant 75/100: Yay, gameplay! But why the field height is so small?
Anonymous participant 53/100: I don't know if this was intentional but you can simply click on the meteorite to destroy it. Cool-looking game by the way.
Anonymous participant 75/100: Fully functional games always get good scores from me, especially ones that work on both mobile and (more or less) on desktop. The readable code mostly makes sense which is nice too!
Anonymous participant 80/100: i love the city and explosion colors, the gameplay is an interesting idea that fits the theme, great job
Anonymous participant 84/100: A missile game where the missile is controlled by its target position and speed ("charge"). You are not supposed to click the target directly, so you need to calculate speed which makes this game more interesting. It should be noted that you _can_ in fact click the target directly due to a bug. I liked the final game-over effect a lot---slow-down effect was really brilliant.
Anonymous participant 75/100: Good use of the theme to create a variant of Missile Command. Cheat for an easier game?: start with a narrow browser window?!
Anonymous participant 75/100: no comment
Anonymous participant 85/100: Boom! The missile range is too low for my liking (compared to the height of the buildings).

Public comments

Anonymous Forgot to mention: the game is best played in portrait mode. 1657822474


Leave a comment