[−][src]Function rust_action_heroes::main
fn main() -> Result<()>
Main builds the game object and starts running the game loop.
One gotcha is that to get the game to run on a Linux desktop with Wayland, you need to set the
environment variable WINIT_UNIX_BACKEND=x11
.
Thankfully we can just set that variable in main before starting the game.