format scene glyph migration changes

This commit is contained in:
2026-04-24 15:43:39 +01:00
parent 41801a8e7a
commit 92be3b90fb
8 changed files with 89 additions and 115 deletions
@@ -15,7 +15,12 @@ mod tests {
use crate::tile::Tile;
use crate::tilemap::TileMap;
fn layer(glyph_asset_id: AssetId, parallax_x: f32, parallax_y: f32, glyph_id: u16) -> SceneLayer {
fn layer(
glyph_asset_id: AssetId,
parallax_x: f32,
parallax_y: f32,
glyph_id: u16,
) -> SceneLayer {
SceneLayer {
active: true,
glyph_asset_id,
@@ -284,12 +284,7 @@ mod tests {
let mut tiles = Vec::new();
for y in 0..4 {
for x in 0..4 {
tiles.push(make_tile(
base_glyph + (y * 4 + x) as u16,
1,
x % 2 == 0,
y % 2 == 1,
));
tiles.push(make_tile(base_glyph + (y * 4 + x) as u16, 1, x % 2 == 0, y % 2 == 1));
}
}