1. Installation
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 some libraries installed on your computer. See below for platform-specific instructions on how to install them.
MacOS
Install via HomeBrew :
brew install python cmake ccache ninja git-lfs clang-format nvm
nvm install node
nvm use node
Get the template
MacOS
git clone https://github.com/hiber3d/game-template my-game
cd my-game
git lfs install
git lfs fetch --all
git lfs checkout
rm -rf .git
You can change “my-game” in the commands above to anything you want
Setup the project
npm run compile
(See below for options)npm install
npm run dev
Open http://localhost:5173 in your browser
- Press
cmd + e
(ctrl + e
on Windows) to toggle the editor - 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