Launch the game

  • Install Rust: Rust official guide, Bevy Book installing rust and OS dependencies
  • Start a new project:
    cargo new learn_bevy_game
    cd learn_bevy_game
    
  • Add Bevy as dependency (with a link-time optimization):
    cargo add bevy --features dynamic_linking
    
  • Apply an optimization for debugging experience: add the following lines to Cargo.toml
    [profile.dev.package."*"]
    opt-level = 3
    
  • Test the game (which is just a hello world program for now): ch01/step-1
    cargo run # this could take some time; later builds would be a lot faster
    
  • Read more about the optimizations and building commands: bevy book, unofficial bevy cheatbook