Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Feb 7, 2025
1 parent 91c4da3 commit 028d63d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 16 deletions.
52 changes: 42 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,66 @@ It is a transcendental descendant of the [Wintermoon](https://github.com/winterm

### Build

Python & virtualenv
**Python & virtualenv**

```shell
uv venv
source .venv/bin/activate
```

Conan & pre-commit hooks
**Conan & hooks pre-commit**

```shell
uv pip install -r requirements.txt
pre-commit install
conan profile detect --force
conan remote update conancenter --url https://center2.conan.io
conan install . --output-folder=build --build=missing --settings compiler.cppstd=20 --settings build_type=Release
```

CMake build
**Adding the WebAssembly profile**

```shell
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -DSANDBOX=ON
cmake --build . --parallel 8
cat > ~/.conan2/profiles/webassembly <<EOF
include(default)
[settings]
arch=wasm
os=Emscripten
[tool_requires]
*: emsdk/3.1.72
EOF
```

**Installing all dependencies**

```shell
conan install . --output-folder=build --build="*" --profile=webassembly --settings compiler.cppstd=20 --settings build_type=Release
```

**Building the project**

```shell
make -f Makefile.webassembly build
```

Run
**Cloning a game**

```shell
# if not in build directory, cd build
./carimbo
gh repo clone willtobyte/slime sandbox
```

**Cloning the playground web application**

```shell
gh repo clone willtobyte/run
```

**Running the application**
**Note:** Ensure Docker is running. If not, install [OrbStack](https://orbstack.dev/).

```shell
make run
```

Finally, open [http://localhost:3000/playground](http://localhost:3000/playground) in your browser.
6 changes: 0 additions & 6 deletions src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ void socket::on_resolve(beast::error_code ec, tcp::resolver::results_type result
this
)
);

// auto &layer = _ws.next_layer();
// layer.async_connect(
// results,
// boost::beast::bind_front_handler(&socket::on_connect, this)
// );
}

void socket::on_connect(beast::error_code ec, const tcp::resolver::results_type::endpoint_type &endpoint) noexcept {
Expand Down

0 comments on commit 028d63d

Please sign in to comment.