A fast multiplayer shooter on wheels RustCycles
RustCycles is a third person shooter that's about movement, not aim. You have to be smart and think fast.
This is not even a prototype yet. But don't be disappointed, bookmark it and come back a few months later ;)
Development
Install git LFS before cloning this repo.
After that, just use cargo run
.
Fast compiles (optional)
You can make the game compile significantly faster (around 2 seconds) and iterate quicker:
Use nightly, lld and -Zshare-generics
- Run this in project root:
ln -s rust-toolchain-example.toml rust-toolchain.toml; cd .cargo; ln -s config-example.toml config.toml; cd -
- Reduction from 12 s to 2.5 s
target
directory
Prevent rust-analyzer from locking the Add this to your VSCode config (or something similar for your editor):
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "target-ra"
}
Normally, rust-analyzer runs cargo check
on save which locks target
so if you switch to a terminal and do cargo run
, it blocks the build for over a second which is currently a third of the build time. This will make rust-analyzer make use a separate target directory so that it'll never block a build (at the expense of some disk space). Alternatively, you could disable saving when losing focus, disable running check on save or use the terminal inside VSCode to build RustCycles.
mold
linker
On linux, use the ~/your/path/to/mold -run cargo build
- Reduction from 2.5 s to 2.3 s
- Might not be worth it for now (you need to compile it yourself), maybe when the game gets larger
LICENSE
AGPL-v3 or newer