mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-26 17:38:34 +03:00
30f6f59385
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) |
||
---|---|---|
.. | ||
autoplay-tutorials.sh | ||
autopopulate-spellchecker.sh | ||
benchmark-against-parent.sh | ||
compare-format.sh | ||
enforce-todo-issues.sh | ||
normalize-all-yaml.sh | ||
play.sh | ||
preview-world-vscode.sh | ||
reformat-code.sh | ||
regenerate-schema-docs.sh | ||
render-sublibrary-dependencies.sh | ||
run-benchmarks.sh | ||
run-tests.sh | ||
validate-json-schemas.sh | ||
view-haddocks.sh |