Add standard Bevy boilerplate to README.md (#5191)

@BoxyUwU says that she always looks for this here, following the example of [tetra](https://github.com/17cupsofcoffee/tetra).

I think this is a pretty sensible idea!
This commit is contained in:
Alice Cecile 2022-07-04 13:04:21 +00:00
parent 534cad611d
commit 050251da5a

View file

@ -67,6 +67,18 @@ git checkout latest
cargo run --example breakout
```
To draw a window with standard functionality enabled, use:
```rust
use bevy::prelude::*;
fn main(){
App::new()
.add_plugins(DefaultPlugins)
.run();
}
```
### Fast Compiles
Bevy can be built just fine using default configuration on stable Rust. However for really fast iterative compiles, you should enable the "fast compiles" setup by [following the instructions here](http://bevyengine.org/learn/book/getting-started/setup/).