Skip to Content
Getting started1. Installation

1. Installation

Download the editor app

Run the editor app and select “New project”

Alternative: Manual setup

While the editor app is the recommended way to get started, you can also set up a project manually.

Prerequisites

You need to have the following installed on your computer:

  • node
  • python
  • git-lfs
  • cmake
  • ccache
  • ninja
  • clang-format

MacOS

Install via HomeBrew

brew install cmake ccache ninja git-lfs clang-format nvm

Note: We recommend installing node via nvm: nvm install --lts

Windows

Install via Scoop

scoop install cmake ccache ninja git git-lfs nvm

Note: We recommend installing node via nvm: nvm install --lts

(clang-format is not available in scoop)

Get the template

Start by getting a copy of the Hiber3D game template:

npx degit https://github.com/hiber3d/game-template#stable

Setup the project

Unless you have used git lfs before, it needs to be initialized now:

  1. git-lfs install
  2. git-lfs fetch
  3. git-lfs checkout

Next, from the root of the project, run

  1. npm run compile (See below for options)
  2. npm install
  3. npm run dev

Open http://localhost:5173 in your browser

  1. Press cmd + e (ctrl + e on Windows) to toggle the editor
  2. Start creating your game!

Compiling engine

If you only want to compile the C++ code you can run:

  • Both:
    • npm run compile
    • npm run compile:release
  • WebGPU only:
    • npm run compile:webgpu
    • npm run compile:webgpu:release
  • WebGL only:
    • npm run compile:webgl
    • npm run compile:webgl:release
Last updated on