Skip to content

Commit 9db1345

Browse files
authored
README: fix target dir mentions and some other inconsistencies
1 parent 4283931 commit 9db1345

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
Macroquad is a normal rust dependency, therefore an empty macroquad project may be created with:
3030

31-
```bash
31+
```sh
3232
# Create empty cargo project
3333
cargo init --bin
3434
```
@@ -61,23 +61,23 @@ async fn main() {
6161
```
6262

6363
And to run it natively:
64-
```bash
64+
```sh
6565
cargo run
6666
```
6767

6868
For more examples take a look at [Macroquad examples folder](https://github.com/not-fl3/macroquad/tree/master/examples)
6969

7070
### Linux
7171

72-
```bash
72+
```sh
7373
# ubuntu system dependencies
7474
apt install pkg-config libx11-dev libxi-dev libgl1-mesa-dev libasound2-dev
7575

7676
# fedora system dependencies
7777
dnf install libX11-devel libXi-devel mesa-libGL-devel alsa-lib-devel
7878

7979
# arch linux system dependencies
80-
pacman -S pkg-config libx11 libxi mesa-libgl alsa-lib
80+
pacman -S pkg-config libx11 libxi mesa-libgl alsa-lib
8181
```
8282

8383
### Windows
@@ -99,7 +99,7 @@ rustup target add wasm32-unknown-unknown
9999
cargo build --target wasm32-unknown-unknown
100100
```
101101

102-
This will produce .wasm file in `target/debug/wasm32-unknown-unknown/CRATENAME.wasm` or in `target/release/wasm32-unknown-unknown/CRATENAME.wasm` if built with `--release`.
102+
This will produce .wasm file in `target/wasm32-unknown-unknown/debug/CRATENAME.wasm` or in `target/wasm32-unknown-unknown/release/CRATENAME.wasm` if built with `--release`.
103103

104104
And then use the following .html to load it:
105105

@@ -149,10 +149,10 @@ basic-http-server .
149149

150150
To run on the simulator:
151151

152-
```
152+
```sh
153153
mkdir MyGame.app
154154
cargo build --target x86_64-apple-ios --release
155-
cp target/release/mygame MyGame.app
155+
cp target/x86_64-apple-ios/release/mygame MyGame.app
156156
# only if the game have any assets
157157
cp -r assets MyGame.app
158158
cat > MyGame.app/Info.plist << EOF
@@ -200,7 +200,7 @@ Rust's `async/await` is used to solve just one problem - cross platform main loo
200200

201201

202202
The problem: on WASM and android it's not really easy to organize the main loop like this:
203-
```
203+
```rust
204204
fn main() {
205205
// do some initialization
206206

0 commit comments

Comments
 (0)