src/main.rs 756 B · 26 lines · raw · history

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