Fix panning
This commit is contained in:
parent
4d59288ec8
commit
4e163b7345
1 changed files with 9 additions and 9 deletions
|
@ -529,17 +529,17 @@ fn generate_graphics(
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = commands.spawn_bundle(Camera2dBundle::default());
|
|
||||||
_ = commands
|
_ = commands
|
||||||
.spawn_bundle(SpriteBundle {
|
.spawn_bundle(Camera2dBundle::default())
|
||||||
|
.insert(Pan2d::new());
|
||||||
|
_ = commands.spawn_bundle(SpriteBundle {
|
||||||
texture: images.get_handle(world_manager.map_image_handle_id.unwrap()),
|
texture: images.get_handle(world_manager.map_image_handle_id.unwrap()),
|
||||||
sprite: Sprite {
|
sprite: Sprite {
|
||||||
custom_size: Some(custom_sprite_size),
|
custom_size: Some(custom_sprite_size),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..default()
|
..default()
|
||||||
})
|
});
|
||||||
.insert(Pan2d::new());
|
|
||||||
|
|
||||||
_ = commands
|
_ = commands
|
||||||
.spawn_bundle(NodeBundle {
|
.spawn_bundle(NodeBundle {
|
||||||
|
|
Loading…
Reference in a new issue