swarm/app
Karl Ostmo a18258c20d
extract scene renderer to its own binary (#1752)
Closes #1715

Extract scene renderer to its own binary with `swarm-scenario` as its only dependency.

This was mainly enabled by moving the `Landscape` sub-record out of the `swarm-engine` sublibrary and into `swarm-scenario`, and refactoring rendering functions to only depend on `Landscape` rather than the entire `GameState`.

# Demo

    stack build --fast swarm:swarm-scene && stack exec swarm-scene -- data/scenarios/Fun/horton.yaml --png -w 180 -h 150

![output](https://github.com/swarm-game/swarm/assets/261693/e2df3aad-3b65-46bf-8485-352facdffc76)
2024-01-29 18:01:56 +00:00
..
doc extract scene renderer to its own binary (#1752) 2024-01-29 18:01:56 +00:00
scene extract scene renderer to its own binary (#1752) 2024-01-29 18:01:56 +00:00
Swarm Remove Benchmark dependence on AppState and TUI (#1746) 2024-01-26 17:56:39 +00:00
Main.hs extract scene renderer to its own binary (#1752) 2024-01-29 18:01:56 +00:00