Skip to content

rob-myers/npc-cli

Repository files navigation

NPC CLI

Towards believable NPCs.

# full dev env e.g. auto-update assets/images
npm run dev
yarn dev

# manual dev env
npm run develop
yarn develop

Gotchas

Fix VSCode UI Push

This hook https://github.com/dflourusso/pre-push/blob/master/hook will use .bashrc (because I use bash), which should contain something like this:

# .bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm

test -f .nvmrc && nvm use

Configure Giscus

See https://giscus.app/.

Shader Syntax Highlighting

Use VSCode plugin glsl-literal for syntax highlighting (*.glsl + inline-strings).

Optional Dependencies

We use xargs for parallelisation of commands.

# for `yarn cwebp '{ "files": [...] }'`
brew install webp

We use convert from ImageMagick.

brew install imagemagick

# exit code 0 <=> installed
convert --version | grep ImageMagick >/dev/null && echo $?

# autocrop an image using ImageMagick (overwriting it)
srcPath=media/edited/fresher--015--1x2.png &&
  dstPath=media/edited/fresher--015--1x2.trim.png &&
  convert -fuzz 1% -trim "$srcPath" "$dstPath" && mv "$dstPath" "$srcPath"

# greyscale
convert -colorspace Gray myImage.png  myImage.gray.png

We use dot (graphviz) to visualized directed graphs.

https://graphviz.org/documentation/

brew install graphviz

Starship Symbols Source PNGs

Symbol PNGs should be unzipped in /media

Geomorph PNGs (background in hull symbols) should be unzipped in /media

Related resources (less/more resolution)

CodeSandboxes

CharacterShaderTest

About

Towards believable NPCs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published