bevy-snake-tutorial/src/main.rs

13 lines
237 B
Rust
Raw Normal View History

2020-11-04 10:09:02 -05:00
use bevy::prelude::*;
2020-12-24 13:34:47 -05:00
fn setup(commands: &mut Commands) {
commands.spawn(Camera2dBundle::default());
2020-11-04 10:09:02 -05:00
}
fn main() {
App::build()
.add_startup_system(setup.system())
2020-12-24 13:34:47 -05:00
.add_plugins(DefaultPlugins)
2020-11-04 10:09:02 -05:00
.run();
}