top | item 47244003

Show HN: Yare.io – Kill all enemy cats. With JavaScript.

3 points| levmiseri | 5 days ago |yare.io

A deceptively simple game of 9 vs. 9 cats. Your actions are limited to moving and shooting, but 'how' you move your units and when or which cat you shoot can be difficult to decide.

You can play against the prepared bots, or against other 'human' players in real-time matches.

4 comments

order
[+] gus_massa|4 days ago|reply
Is it possible to hide the editor to see the cats?

In the demo, it it possible to end the game instantly, if my bot has a bug the easy enemy model takes too long to win.

I guess you have to add collisions. Otherwise the best strategy is probably to stack all the cats in the same position and get a x9 death ray.

[+] gus_massa|4 days ago|reply
Is array.sort working? In particular

  enemies.sort((a,b) => {1})
or

  enemies.sort((a,b) => {-1})

?
[+] deep1283|4 days ago|reply
its a pretty interesting game