Bloxel sandbox game similar to Minecraft "Classic" (2009) written in Rust with Bevy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
659 B

use bevy::prelude::*;
pub mod crosshair;
pub mod loading_screen;
pub(super) fn plugin(app: &mut App) {
app.add_plugins((crosshair::plugin, loading_screen::plugin));
// Make entities require the `Pickable` component if
// they should be considered for the picking system.
app.insert_resource(UiPickingSettings {
require_markers: true,
});
app.add_systems(Startup, setup_ui_camera);
}
fn setup_ui_camera(mut commands: Commands) {
commands.spawn((
Camera2d,
Camera {
order: 1, // above 3D camera
..default()
},
IsDefaultUiCamera,
UiPickingCamera,
));
}