Skip to content

Commit b685258

Browse files
authored
Merge pull request #59 from lukacslacko/instructions
Update instructions
2 parents 8dca137 + f478d20 commit b685258

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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`.
816
Finally, 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
```
2735
trunk serve --release --filehash=false --dist docs
2836
```

‎src/state.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)