Skip to content

Commit 277a4da

Browse files
committed
minor doc tweaks
1 parent ebd5f34 commit 277a4da

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.vscode
33
build
44
*.null0
5+
*.wasm

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ This is a basic example cart in C for the [null0](https://notnull.games/null0) g
22

33
## usage
44

5-
Carts run natively, and on the web. This repo will auto-publish to github-pages on push, so users can check out your cart.
5+
Carts run natively, and on the web. This repo will auto-publish to github-pages on push, so users can check out your cart without installing anything.
66

77
They can also install [the native runtime](https://github.com/notnullgames/null0/releases) and use it to run your cart.
88

9+
## github
10+
11+
There are 2 actions:
12+
13+
- Publish demo to github-pages - this happens on any push
14+
- Attach current version of your cart to any releases that are created (like [here](https://github.com/notnullgames/cart_c/releases/))
15+
916
## developing
1017

1118
Make sure you have [wasi-sdk](https://github.com/WebAssembly/wasi-sdk/releases) installed and `WASI_SDK_PATH` set to it's location (eg `/opt/wasi-sdk`.)
@@ -15,10 +22,11 @@ Then you can do this:
1522
```sh
1623
$WASI_SDK_PATH/bin/clang src/main.c -o src/main.wasm
1724
cd src
18-
zip -r ../cart.null0 -x '*.h' '*.c' .
25+
zip -r ../mygame.null0 . -x '*.h' '*.c'
1926
```
2027

2128
You can also use cmake (recommended) to build a complete cart:
29+
src/
2230

2331
```sh
2432
cmake -B build -DCMAKE_TOOLCHAIN_FILE=$WASI_SDK_PATH/share/cmake/wasi-sdk.cmake -DCMAKE_BUILD_TYPE=Release

0 commit comments

Comments
 (0)