-
Install SpaceTimeDB CLI:
curl -sSf https://install.spacetimedb.com | sh -
Start SpaceTimeDB:
spacetimedb start -
Generate C# bindings for the client:
./generate.sh -
Publish the server locally:
./publish.sh -
View server logs:
./logs.sh -
(Optional) Expose the server via ngrok:
./ngrok.sh
When running the game a server.json configuration file is created, you can change the server url and module name if needed and restart the game.
{
"url": "http://localhost:3000",
"dbName": "pillz"
}
- The
server.jsonfile is located inUser/Library/Application Support/Mulla/Pillz
- The
server.jsonfile is located inC:\Users\<YourUsername>\AppData\LocalLow\Mulla\Pillz
- Open the
clientfolder in Unity Editor. - Ensure the generated scripts are present in
client/Assets/Scripts/autogen. - Press Play in Unity to start the client.
- Rust and Cargo installed for server development.
- Unity Editor for client development.
- Ngrok (optional) for public server access. .
| Action | Default Binding | Description |
|---|---|---|
| Move | WASD / Arrow Keys | Move the player |
| Jump | Space | Hold to jump / throttle jetpack |
| Jetpack | Shift | Toggle jetpack |
| Stim | Right Mouse Button | Use stim (only if under 100 mg) |
| Primary Weapon | 1 | Select primary weapon |
| Secondary Weapon | 2 | Select secondary weapon |
| Aim | Mouse Movement | Aim weapon direction |
| Attack | Left Mouse Button | Hold and release to shoot |
- Controls are managed via the
PlayerInputActionsasset. - Weapon aiming uses mouse position.
- Holding and releasing the attack button affects projectile speed.
- Key bindings may be customized in Unity's Input System settings.
