bevy_generative 0.4.0

Procedural generation in Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bevy::prelude::*;
use bevy_generative::map::{MapBundle, MapPlugin};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(MapPlugin)
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands) {
    let camera_bundle = (Camera2d::default(),);
    commands.spawn(camera_bundle);
    commands.spawn(MapBundle::default());
}