kfish / shufflepuck

Shufflepuck app in Here4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Shufflepuck app in Here4

License:MIT License


Languages

Language:Elm 100.0%