Game: Asteroids

Hi Elm Discourse!

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

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!


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.