Game: Asteroids

Hi Elm Discourse!

I made a version of the arcade game Asteroids in Elm.

https://justinmimbs.github.io/asteroids/

Possibly interesting features: the asteroids split where you hit them and move accordingly, asteroid shapes are randomly generated, and text is rendered without traditional fonts.

Using Elm to make a game was delightful. :yellow_heart:

Happy blasting!

15 Likes

this is the coolest! How did you do that?

1 Like

Thanks, Brian! Roughly: 1) split the asteroid polygon by the line of the blast, 2) find the center of each new fragment, and 3) apply the impulse from the blast to each fragment.

7 Likes