Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 909 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 909 Bytes

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.