Skip to content

lounge/pillz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pillz

img1.png

Running the Server

  1. Install SpaceTimeDB CLI:

     curl -sSf https://install.spacetimedb.com | sh   
    
  2. Start SpaceTimeDB:

    spacetimedb start
    
  3. Generate C# bindings for the client:

    ./generate.sh
    
  4. Publish the server locally:

    ./publish.sh
    
  5. View server logs:

    ./logs.sh
    
  6. (Optional) Expose the server via ngrok:

    ./ngrok.sh
    

Server Configuration

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"
}

MacOS

  • The server.json file is located in User/Library/Application Support/Mulla/Pillz

Windows

  • The server.json file is located in C:\Users\<YourUsername>\AppData\LocalLow\Mulla\Pillz

Running the Unity Client

  1. Open the client folder in Unity Editor.
  2. Ensure the generated scripts are present in client/Assets/Scripts/autogen.
  3. Press Play in Unity to start the client.

Or download the client from itch.io

Requirements

  • Rust and Cargo installed for server development.
  • Unity Editor for client development.
  • Ngrok (optional) for public server access. .

Player Controls

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

Notes

  • Controls are managed via the PlayerInputActions asset.
  • 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.

About

Arena shooter. SpacetimeDB rust server and Unity C# client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors