mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-16 00:03:29 +00:00
b9abf1d82f625d95a54c5c86f0c2b1f690b7ca01
This PR adds the camera motions to the composite mode. There are currently 4 camera motion modes: `Orbit`, `Static`, `Pan`, `Zoom`. They are accessed by using the `--camera-motion [motion]` argument. For example, if I want to render a scene with an orbiting motion, I would do the following: `studio-headless scene --camera-motion orbit scene.ron ` Some things to note: - The argument `--orbit` no longer is there. It has been deprecated! - Currently the speed is hard coded. This can be set as a command arg later. - This only works with scenes, as this is intended for the `sample-room` scene. May not work great for other scenes Let me know if there is anything that I can fix!
Storyteller Studio
Installing dependencies
- Install Rust
- Install Node.js LTS
- Run
npm ci
Building / Running / Testing stuff
This repo is managed by Nx, a polyglot build system and monorepo framework written in TypeScript. After installing dependencies, dev tasks can be run through the Nx CLI:
npx nx <command> <project> [options]
# OR
npx nx run <project>:<command> [options]
For example, to compile the Bevy app to WebAssembly and serve it via the web frontend project, run:
npx nx serve studio-frontend
You'll need to install the wasm compiler for Rust:
rustup target add wasm32-unknown-unknown
Projects are located in directories at the workspace root. The list of commands
supported by a given project can be found under the target property of its
project.json file, which defines the Nx configuration for that project.
The full list of options for a given command can be discovered by passing the
--help flag:
npx nx <command> <project> --help
Description
Languages
Rust
59.2%
TypeScript
34.9%
SCSS
4.1%
JavaScript
1%
HTML
0.3%
Other
0.5%