feat: embed atlas.json via phf instead of runtime parsing

This commit is contained in:
2025-08-13 00:33:16 -05:00
parent 09e3d85821
commit ced4e87d41
7 changed files with 135 additions and 12 deletions

View File

@@ -72,7 +72,6 @@ impl Platform for DesktopPlatform {
Asset::Wav3 => Ok(Cow::Borrowed(include_bytes!("../../assets/game/sound/waka/3.ogg"))),
Asset::Wav4 => Ok(Cow::Borrowed(include_bytes!("../../assets/game/sound/waka/4.ogg"))),
Asset::Atlas => Ok(Cow::Borrowed(include_bytes!("../../assets/game/atlas.png"))),
Asset::AtlasJson => Ok(Cow::Borrowed(include_bytes!("../../assets/game/atlas.json"))),
}
}
}