elm/Examples/elm-js/Pong
2012-08-20 14:44:46 +02:00
..
FrameRateHelp.js Add Pong project. 2012-08-17 16:38:41 +02:00
Pong.elm Change how some text is centered. 2012-08-20 14:44:46 +02:00
README.md Add Pong project. 2012-08-17 16:38:41 +02:00

Use the arrow keys to move the square around.

To compile this example yourself use:

elm --import-js="FrameRateHelp.js" FrameRate.elm

This compiles the Elm file and includes the necessary JavaScript code. It produces a self-contained HTML file.

Note: Not all browsers like reading the elm-runtime-x.y.z.js file from an absolute path, so you may have to specify a relative path with the --runtime flag (e.g. --runtime="../../../elm/elm-runtime-0.3.5.js").