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 nodeGet 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 .gitYou can change “my-game” in the commands above to anything you want
Setup the project
npm run compile(See below for options)npm installnpm run dev
Open http://localhost:5173 in your browser
- Press
cmd + e(ctrl + eon 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 compilenpm run compile:release
- WebGPU only:
npm run compile:webgpunpm run compile:webgpu:release
- WebGL only:
npm run compile:webglnpm run compile:webgl:release
Last updated on