Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages