src/main.rs 863 B · 32 lines · raw · history

1 mod camera;
2 mod pathfinding;
3 mod selection;
4 mod tilemap;
5 mod world;
6
7 use bevy::prelude::*;
8
9 fn main() {
10 App::new()
11 .add_plugins(
12 DefaultPlugins
13 .set(ImagePlugin::default_nearest())
14 .set(WindowPlugin {
15 primary_window: Some(Window {
16 title: "Simulator".into(),
17 canvas: Some("#bevy".into()),
18 fit_canvas_to_parent: true,
19 ..default()
20 }),
21 ..default()
22 }),
23 )
24 .insert_resource(ClearColor(Color::srgb(0.08, 0.08, 0.1)))
25 .insert_resource(world::static_world())
26 .add_plugins((
27 tilemap::TilemapPlugin,
28 camera::CameraPlugin,
29 selection::SelectionPlugin,
30 ))
31 .run();
32 }