A collection of projects written with Rust using Bevy game engine.
-
Install Rust (Using rustup)
-
(Optional for Visual Studio Code users) Install rust-analyzer plugin and rust-src:
rustup component add rust-srcAnd
-
Clone this repository:
git clone https://github.com/TogetherGame/bevy-sandbox.git cd bevy-sandbox
-
Install requirements:
-
(Linux) Install
gcc. -
(Linux) Install dev package of
alsa-lib, such asalsa-lib-develon RedHat. -
(Linux) Install dev package of
libudev, such assystemd-develon RedHat,libudev-devon Debian distros.
-
-
Since this project is a workspace, in order to run certain project, you have to either
cdinto that project's directory then executecargo runor run it inside the main directory as follows:cargo run -p hello_worldOr, this project provides a shorter alias
rpwhich simply does the same thing, which allows running above command by simply entering:cargo rp hello_worldThe first compilation proccess might take a few minutes as cargo has to fetch the build requirement crates to build the entire engine.
-
Fork this repository (recommanded) or make a new branch
-
Clone the forked repository or the new branch
-
Make your modification
-
Format the code and test with clippy
(Requires rustfmt and clippy, so if you don't already have them installed, run
rustup component add rustfmt clippyto install)cargo fmt --all cargo clippy --all
-
Commit & Push your modification
git add . git ci -a -m '<MASSAGE>' git push
-
Then open a new Pull Request with the fork/branch you have created.