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-src
And
-
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-devel
on RedHat. -
(Linux) Install dev package of
libudev
, such assystemd-devel
on RedHat,libudev-dev
on Debian distros.
-
-
Since this project is a workspace, in order to run certain project, you have to either
cd
into that project's directory then executecargo run
or run it inside the main directory as follows:cargo run -p hello_world
Or, this project provides a shorter alias
rp
which simply does the same thing, which allows running above command by simply entering:cargo rp hello_world
The 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 clippy
to 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.