Skip to content

tahtituho/lovebyte2023

Repository files navigation

lovebyte 2023 entry by tähtituho

Prerequisites

  1. install node
  2. run npm install -g http-server
  3. npm install node-zopfli

Shader development

  1. Edit tools/src/shaders/fragment.frag
  2. Run tools/out/leviathan-debug.exe
  3. leviathan will reload shader when you save it

Releasing

  1. When shader is finished minify it by running minifyShader.bat.
  2. Start http server in project root folder: http-server
  3. Put minifed shader code to sourceDev.js file into fragmentShader variable.
  4. Make changes to minified shader, these changes are states in sourceDev.js
  5. Point browser to http://localhost:8080/index.html
  6. When you feel that everything is working paste sourceDev.js to https://xem.github.io/terser-online/ and copy output to source.js
    1. Also might be good idea to try different minifications: https://js1024.fun/
  7. Run minifyCode.bat and try results at http://localhost:8080/release/index.html