nvm use
pnpm i
pnpm dev
pnpm staging # build in staging mode
pnpm build # build in production mode
pnpm preview
Add params to URL to turn on/off some features.
Example: www.url.com/?param1¶m2
List of params:
debug
: Enable debug panes, stats, camera.
orbit
: Enable OrbitControls, debug
must be enabled.
skip-screen-record
: Disable video creation.
skip-camera
: Disable camera & Tensorflow compute.
step
: Go to specific step. Write precise name without 'step' in the end. Example: step=dance
.
tensorflow
: Select tensorflow compute mode. gpu
or cpu
. cpu
has memory leaks. gpu
if nothing is set.
s/o Titou pour le starter
To merge all UI sound in a sprite :
- Install audiosprite :
npm install -g audiosprite
- Put all UI sounds in
assets/audio
at the project's root - Type
pnpm build-assets
ornpm run build-assets
- Update
UI_IDS
inAudioManager.js
with corresponding names
To add musics :
- Put them in
src/assets/audio/musics
- Update
musics.json
insrc/scripts/Core/audio
by giving musics' name and source file - Update
MUSIC_IDS
inAudioManager.js
with corresponding names