Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billyb2/shooter2_c
A fast paced multiplayer shooter written in C
https://github.com/billyb2/shooter2_c
c game networking rust webassembly
Last synced: about 1 month ago
JSON representation
A fast paced multiplayer shooter written in C
- Host: GitHub
- URL: https://github.com/billyb2/shooter2_c
- Owner: billyb2
- License: agpl-3.0
- Created: 2022-07-10T20:14:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T15:48:58.000Z (2 months ago)
- Last Synced: 2024-09-10T17:34:54.784Z (2 months ago)
- Topics: c, game, networking, rust, webassembly
- Language: C
- Homepage:
- Size: 1.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shooter2_C
## Build instructions
### Linux
You'll need the following packages
- clang, gcc, lld, mold, cmake, ninja, rust (rustc + cargo), just (build runner)
To install Rust: https://www.rust-lang.org/tools/install
To install the remaining tools for:
- Gentoo: `emerge gcc lld mold cmake ninja && cargo install -f just`
- Arch: `pacman -Syu build-tools lld mold just cmake ninja`### Windows
I don't own a Windows machine, but I assume you'll need:
- rust: https://www.rust-lang.org/tools/install
- mingw
- lld
- clang
- cmake
- ninja### MacOS
lol### Actually building
Once all the platform build tools are installed, you'll need to run the following prebuild steps
- `rustup update nightly`
- `rustup target add wasm32-unknown-unknown`
- `rustup target add x86_64-pc-windows-gnu`
- `rustup component add rust-src`Then, you'll want to build your bots and move their .wasm file over to the `bots/` directory
In order to configure the project, run:
`just configure`For Windows users, run:
`just configure_windows`Finally, to actually run the project, run:
`just run[_windows]`or:
`just run[_windows]_release`To just build and not run the project, replace run with build for the commands above
### Docker
If you want to just compile a release build for Linux: run `docker run -v (pwd):/build shooter2_c && build/debug/main`