small medium large xlarge

Cast_magic_missile_pragsmall
21 Jan 2017, 17:17
Ron Toland (6 posts)

Elm 0.17 changed much of the language, eliminating a lot of the features the book’s examples rely on.

I’ve taken the liberty of translating the Day Two examples to run on Elm 0.18: https://gist.github.com/mindbat/44fc6725b89ad3e230d000da3dcff439

Cast_magic_missile_pragsmall
29 Jan 2017, 15:15
Ron Toland (6 posts)

I’ve translated the Day Three game code to work in Elm 0.18 as well: https://gist.github.com/mindbat/64b18490ae1192d876aed0b1c2c70080

This one needed more extensive changes: swapping signals for subscriptions, updating the imported modules, changing the display code, and updating the use of the Random library.

I also swapped using the keyboard to control the paddle instead of the mouse, since it felt more natural :)

This blog post was particularly helpful in the translation, and it’s where I got the Key.elm package from: https://ohanhi.github.io/base-for-game-elm-017.html

You must be logged in to comment