Skip to content

Commit

Permalink
Merge pull request #2261 from villesundell/rust-template-readme-fix
Browse files Browse the repository at this point in the history
#2260: Updated Rust template build instructions
  • Loading branch information
nesbox authored Aug 14, 2023
2 parents 0254325 + 59c4c03 commit 22c8bb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ Then, to build a cart.wasm file, run:
cargo build --release
```

To import the resulting WASM to a cartridge:
To import the resulting WASM to a cartridge named `game.tic`:

```
tic80 --fs . --cmd 'load game.tic & import binary target/wasm32-unknown-unknown/release/cart.wasm & save'
tic80 --fs . --cmd 'new wasm & import binary target/wasm32-unknown-unknown/release/cart.wasm & save game'
```

Or from the TIC-80 console:

```
load game.tic
new wasm
import binary target/wasm32-unknown-unknown/release/cart.wasm
save
save game
```

This is assuming you've run TIC-80 with `--fs .` inside your project directory.
Expand Down

0 comments on commit 22c8bb3

Please sign in to comment.