File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# terrain3d
22
3+ - Run with ` cargo run -r ` . Startup takes a bit of time, see the progress report in the console.
4+ - Drag with left mouse button to rotate the Earth.
5+ - Scroll with the mouse to zoom in and out.
6+ - Right click to create a city.
7+ - Left click one city then another to connect them.
8+ - Left click a train to ride it.
9+ - Press Esc to get off a train.
10+
311## Profiling
412
5- To profile, do ` cargo install flamegraph ` , then run with ` cargo flamegraph `
6- as admin, eg in windows by searching for ` cmd ` , right clicking on
7- ` Command Prompt ` and selecting ` Run as administrator ` .
13+ To profile, do ` cargo install flamegraph ` , then run with ` cargo flamegraph `
14+ as admin, eg in windows by searching for ` cmd ` , right clicking on
15+ ` Command Prompt ` and selecting ` Run as administrator ` .
816Finally, open the result flamegraph.svg in a browser.
917
1018## WebAssembly (WASM) Build & Deployment
@@ -22,7 +30,7 @@ To build the Bevy app for WebAssembly and output to the `docs/` directory (for l
2230 build-wasm.bat
2331 ```
2432
25- The output will be in the ` docs/ ` directory. You can serve this directory locally with
33+ The output will be in the ` docs/ ` directory. You can serve this directory locally with
2634```
2735trunk serve --release --filehash=false --dist docs
2836```
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl Default for Config {
4040 min_city_distance : 1.0 ,
4141 reduction_factor : 2.0 , // default reduction factor
4242 climbing_cost : 5.0 ,
43- num_automatic_trains : 250 ,
43+ num_automatic_trains : 0 ,
4444 }
4545 }
4646}
You can’t perform that action at this time.
0 commit comments