Skip to content

Commit 71d2884

Browse files
committed
Small fixes.
1 parent 6aff699 commit 71d2884

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

examples/chunking.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ fn main() {
121121
})
122122
.set(ImagePlugin::default_nearest()),
123123
)
124-
// `TilemapRenderS
125124
.add_plugins(TilemapPlugin)
126125
.insert_resource(ChunkManager::default())
127126
.add_systems(Startup, startup)

src/map/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use bevy::{
88
prelude::{Component, Entity, Handle, Image, Reflect},
99
};
1010

11-
use crate::render::CHUNK_SIZE_2D;
11+
/// The default chunk_size (in tiles) used per mesh.
12+
pub const CHUNK_SIZE_2D: UVec2 = UVec2::from_array([64, 64]);
1213

1314
/// Custom parameters for the render pipeline.
1415
///

src/render/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ use self::extract::ExtractedTilemapTexture;
4949
#[cfg(not(feature = "atlas"))]
5050
pub(crate) use self::texture_array_cache::TextureArrayCache;
5151

52-
/// The default chunk_size (in tiles) used per mesh.
53-
pub const CHUNK_SIZE_2D: UVec2 = UVec2::from_array([64, 64]);
54-
5552
#[derive(Copy, Clone, Debug, Component)]
5653
pub(crate) struct ExtractedFilterMode(FilterMode);
5754

0 commit comments

Comments
 (0)