Skip to content

Commit

Permalink
Merge pull request #178 from StarArawn/bugfixes
Browse files Browse the repository at this point in the history
Fixed hot reloading in ldtk/tiled examples.
  • Loading branch information
StarArawn authored Apr 20, 2022
2 parents ddfdc57 + f831a97 commit 7ed6296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/ldtk/ldtk_usage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::ldtk::*;
use bevy::prelude::*;
use bevy::{asset::AssetServerSettings, prelude::*};
use bevy_ecs_tilemap::prelude::*;

#[path = "../helpers/mod.rs"]
Expand Down Expand Up @@ -29,6 +29,10 @@ fn main() {
title: String::from("LDTK Example"),
..Default::default()
})
.insert_resource(AssetServerSettings {
watch_for_changes: true,
..default()
})
.add_plugins(DefaultPlugins)
.add_plugin(TilemapPlugin)
.add_plugin(LdtkPlugin)
Expand Down
6 changes: 5 additions & 1 deletion examples/tiled/tiled_usage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::tiled::*;
use bevy::prelude::*;
use bevy::{asset::AssetServerSettings, prelude::*};
use bevy_ecs_tilemap::prelude::*;

#[path = "../helpers/mod.rs"]
Expand Down Expand Up @@ -29,6 +29,10 @@ fn main() {
title: String::from("Tiled map editor example"),
..Default::default()
})
.insert_resource(AssetServerSettings {
watch_for_changes: true,
..default()
})
.add_plugins(DefaultPlugins)
.add_plugin(TilemapPlugin)
.add_plugin(TiledMapPlugin)
Expand Down

0 comments on commit 7ed6296

Please sign in to comment.