place core to start the game
This commit is contained in:
parent
3a25a1bd87
commit
1ecd054a31
8 changed files with 67 additions and 24 deletions
|
|
@ -12,7 +12,6 @@ use bevy::{
|
|||
render::camera::Exposure,
|
||||
};
|
||||
use bevy_egui::PrimaryEguiContext;
|
||||
use building::{BuildingTypes, PlaceBuilding};
|
||||
use camera::ControlledCamera;
|
||||
use inhabitant::Inhabitant;
|
||||
use inhabitant_coranth::SpawnCoranth;
|
||||
|
|
@ -54,8 +53,6 @@ fn setup(
|
|||
mut commands: Commands,
|
||||
mut meshes: ResMut<Assets<Mesh>>,
|
||||
mut materials: ResMut<Assets<StandardMaterial>>,
|
||||
buildings: Res<BuildingTypes>,
|
||||
mut place_writer: EventWriter<PlaceBuilding>,
|
||||
mut coranth_writer: EventWriter<SpawnCoranth>,
|
||||
mut graveyard_writer: EventWriter<PlaceGraveyard>,
|
||||
) {
|
||||
|
|
@ -85,11 +82,6 @@ fn setup(
|
|||
|
||||
graveyard_writer.write(PlaceGraveyard(Vec3::new(-10., 0.25, -10.)));
|
||||
|
||||
place_writer.write(PlaceBuilding {
|
||||
info: buildings.info.get("Core").unwrap().0,
|
||||
location: IVec3 { x: 5, y: 0, z: 5 },
|
||||
});
|
||||
|
||||
// Light
|
||||
commands.spawn((
|
||||
DirectionalLight {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue