Rust 和 WebGPU 中的 RTS 游戏/引擎
A real time strategy game/engine written with Rust and WebGPU. Eventually it will be able to run in a web browser thanks to WebGPU. This project is inspired by Total Annihilation, Supreme Commander, Spring Engine and Zero-k.
Map editor HQ version
Unit editor HQ version
Gameplay (35000 units) HQ version
The ultimate goal is to provide a modern, carefully crafted, minimal and highly constrained set of tools for players/designers to create mods (game variant) without programming knowledge. Those tool would be comprised of :
All in one executable.
the test for this goal would be to be able implement a Zero-k clone in this project, with all its features and play it with 32 players.
General purpose modding/ turing complete scripting language.
Low latency server: the increase in dev time between 10ms latency and 100ms is huge. Not worth the effort given that I want people from all around the world to play together. Also I want games to be about strategy, not action per minute (I am getting too old for this ^^).
Hosted simulation server. I am broke, people will have to host their own server to play with others (that would just mean clicking the host button in the multi lobby, and having sufficient bandwidth). the online repository will help with discovery though.
Deterministic engine: that makes multithreading less efficient and harder. It has nice properties (low file size for replay, debugging) but for my goals they are not worth their price. It is usually done to make networking easier and extremely low bandwidth (because peers only have to share player inputs). I have a plan to keep 80% of those properties with a non-deterministic engine (for 20% the price in dev time).
Replacing Spring Engine: This engine will be far more constrained than spring for performance and time reason. There will not be a scripting language like Lua to mod. However I will make sure everything that has been done in the most popular mods of spring will be doable here.
Map editor
Unit editor
Mod editor
Online repository
Multiplayer
Rendering
Simulation
UI
All thanks to WebGPU and wgpu-rs (and winit). No efforts was made by me in this regard. If anything I posted a stupid issue there that was solved in 0.03 second.
git clone https://github.com/Ruddle/oxidator
cd oxidator
cargo run --releaseShaders are automatically hot-reloaded if you change any .frag or .vert file and you compiled with either shaderc
cargo run --features use_shaderc --releaseor glsl_to_spirv
cargo run --features use_glsl_to_spirv --releaseLogs can be enabled via the environment variable RUST_LOG. for instance:
RUST_LOG=oxidator=debug cargo run --releaseMy go-to command when I develop:
RUST_LOG=oxidator=debug cargo run --features use_shaderc --releaseYou can also compile all the shaders to spirv without starting the full application. The compiled shaders will be saved in /src/shader/compiled. This folder is used when no shader compiler flag is enabled.
cargo run --features use_shaderc --release compileI push features that I feel like pushing in the moment. This project could (and probably will) lose its only contributor any time before any playable milestone is reached.
暂无开放 Issues,或尚未同步最近议题。