This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Shufflepuck app in Here4
version 1.2.2
license BSD3
native-modules True
elm-version 0.18.0 <= v < 0.19.0
Tag 1.2.2
Committed At 2017-09-08 22:44:41 UTC
here4/here4 3.6.0 <= v < 4.0.0 3.9.0
elm-lang/mouse 1.0.1 <= v < 2.0.0 1.0.1
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1
elm-community/webgl 2.0.3 <= v < 3.0.0 2.0.6
elm-community/linear-algebra 3.1.1 <= v < 4.0.0 3.1.2

Modules

README

Shufflepuck

Play shufflepuck in here4.

Code

To put a plain Shufflepuck table into your world:

import Shufflepuck

...
    , apps =
        [ ...
        , Shufflepuck.create Shufflepuck.default
        ...

To style your table:


import Shufflepuck

...
    , apps =
        [ ...
        , let
            s =
                Shufflepuck.default
          in
            Shufflepuck.create
                { s
                    | id = "shufflepuck"
                    , position = vec3 20 0 12
                    , tableTexture = "textures/table.jpg"
                    , puckTexture = "textures/puck.jpg"
                    , paddleTexture = "textures/paddle.jpg"
                }
        ...

You can also modify gameplay values like goalWidth, puckMass, paddleMass, and puckMaxSpeed. See the definition of Shufflepuck.default for more ideas.