fn build_map(
	tilesets: Tilesets,
	my_tileset: Res<MyTileset>,
	mut commands: Commands,
	mut map_query: MapQuery,
) {
	let handle = my_tileset.handle.as_ref().unwrap();
	let tileset = tilesets.get(handle).unwrap();

	// === Settings === //
	let map_size = MapSize(4, 4);
	let chunk_size = ChunkSize(5, 5);
	let layer_count = 3;

	// === Build === //
	helpers::build_map(
		tileset,
		map_size,
		chunk_size,
		layer_count,
		&mut commands,
		&mut map_query,
	);
}
/// A system used to build the tilemap
A system used to build the tilemap
A system used to build the tilemap
fn build_map(
	tilesets: Tilesets,
	my_tileset: Res<MyTileset>,
	mut commands: Commands,
	mut map_query: MapQuery,
) {
	let handle = my_tileset.handle.as_ref().unwrap();
	let tileset = tilesets.get(handle).unwrap();
	// === Settings === //
	let map_size = MapSize(4, 4);
	let chunk_size = ChunkSize(5, 5);
	let layer_count = 3;
	// === Build === //
	helpers::build_map(
		tileset,
		map_size,
		chunk_size,
		layer_count,
		&mut commands,
		&mut map_query,
	);
}
fn build_map ( tilesets : Tilesets , my_tileset : Res < MyTileset > , mut commands : Commands , mut map_query : MapQuery , ) { let handle = my_tileset . handle . as_ref ( ) . unwrap ( ) ; let tileset = tilesets . get ( handle ) . unwrap ( ) ; // === Settings === // let map_size = MapSize ( 4 , 4 ) ; let chunk_size = ChunkSize ( 5 , 5 ) ; let layer_count = 3 ; // === Build === // helpers :: build_map ( tileset , map_size , chunk_size , layer_count , & mut commands , & mut map_query , ) ; }
A system used to build the tilemap
A system used to build the tilemap
tilesets
Tilesets
my_tileset
Res<MyTileset>
commands
Commands
map_query
MapQuery
tilesets
Tilesets
my_tileset
Res<MyTileset>
commands
Commands
map_query
MapQuery