swarm/scripts
Karl Ostmo 30f6f59385
preview rendered world with inotify (#1756)
Opens a live-reloading preview of the world in VS Code.

The renderer has been modified to optionally render a blank image instead of crashing upon invalid YAML.

## Prerequisites:
Install inotify tools:

    sudo apt install inotify-tools

## Usage:

    scripts/preview-world-vscode.sh data/scenarios/Fun/horton.yaml

Once the VS Code editor tabs are opened, one can press <kbd>CTRL</kbd> + <kbd>\\</kbd> (backslash) with the image selected to split the editor pane horizontally.
One may then navigate to the left-pane's copy of the image preview with <kbd>CTRL</kbd> + <kbd>PageUp</kbd>, and then <kbd>CTRL</kbd> + <kbd>w</kbd> will close the redundant image preview.

## Screenshot

![Screenshot from 2024-01-29 18-53-55](https://github.com/swarm-game/swarm/assets/261693/63a4728c-0ccb-4c08-8cde-61d65e8322b4)
2024-01-31 19:23:43 +00:00
..
autoplay-tutorials.sh Render markdown in entity descriptions (#1413) 2023-08-12 11:42:12 +00:00
autopopulate-spellchecker.sh simplify spellchecker words script (#1755) 2024-01-29 19:05:35 +00:00
benchmark-against-parent.sh tweak benchmarks (#1754) 2024-01-29 18:38:57 +00:00
compare-format.sh Make function chains pretty (#1479) 2023-10-07 21:04:01 +00:00
enforce-todo-issues.sh subworlds (#1353) 2023-07-22 20:29:22 +00:00
normalize-all-yaml.sh enforce scenario normalization (#1718) 2024-01-06 01:21:21 +00:00
play.sh Specifically build swarm:swarm component in play.sh script (#1682) 2023-12-13 20:34:43 +00:00
preview-world-vscode.sh preview rendered world with inotify (#1756) 2024-01-31 19:23:43 +00:00
reformat-code.sh autopopulate spellchecker (#1749) 2024-01-28 01:54:13 +00:00
regenerate-schema-docs.sh Autogenerate scenario schema doc (#1441) 2023-10-09 02:11:30 +00:00
render-sublibrary-dependencies.sh autogenerated sublibrary diagram (#1720) 2024-01-08 20:16:00 +00:00
run-benchmarks.sh tweak benchmarks (#1754) 2024-01-29 18:38:57 +00:00
run-tests.sh Refactor LogEntry type (#1513) 2023-09-15 03:08:25 +00:00
validate-json-schemas.sh Validate scenarios against json schema (#1475) 2023-08-28 02:34:03 +00:00
view-haddocks.sh bump cabal-build version, fix haddock script (#1703) 2024-01-03 20:47:00 +00:00