place core to start the game

This commit is contained in:
Jim 2025-09-01 21:54:50 -04:00
parent 3a25a1bd87
commit 1ecd054a31
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
8 changed files with 67 additions and 24 deletions

View file

@ -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 {