Skip to content

Getting Started

The easiest way to set up a new project is to use the template package. Beforehand, make sure you have the necessary prerequisites.

  • Ensure the Go glfw bindings run on your platform.

  • Ensure you have the gonew tool.

    go install golang.org/x/tools/cmd/gonew@latest

  • Ensure you have the task tool.

    go install github.com/go-task/task/v3/cmd/task@latest

Afterwards, you can use the following steps:

  1. Create new project using the Lacking template.

    gonew github.com/mokiat/lacking-template@latest example.com/your/namespace projectdir

    cd projectdir

  2. Build and package the assets.

    task pack

  3. Run the project.

    task run

You would only need to run task pack initially and whenever the source resources (images, models) or the pipeline that transforms them have been changed.

You can check for available task commands as follows:

task --list-all