src/main.rs 846 B · 31 lines · raw · history

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