mirror of
https://github.com/zeldaret/tmc
synced 2026-05-29 16:45:06 -04:00
Add more tilemap documentation
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ void SubTileSetAsset::convertToHumanReadable(const std::vector<char>& baserom) {
|
||||
cmd.push_back(toolsPath / "bin" / "gbagfx");
|
||||
cmd.push_back(decompressedPath);
|
||||
cmd.push_back(assetPath);
|
||||
// This creates a better looking tilemap but in some cases not all tiles are used, so it adds additional data when converting back to binary.
|
||||
// This creates a better looking tileMap but in some cases not all tiles are used, so it adds additional data when converting back to binary.
|
||||
//cmd.push_back("-mwidth");
|
||||
//cmd.push_back("32");
|
||||
check_call(cmd);
|
||||
|
||||
Vendored
+3
-3
@@ -264,7 +264,7 @@ std::unique_ptr<BaseAsset> getAssetHandlerByType(const std::filesystem::path& pa
|
||||
}
|
||||
|
||||
std::unique_ptr<BaseAsset> assetHandler;
|
||||
if (type == "subtileset") {
|
||||
if (type == "subTileSet") {
|
||||
assetHandler = std::make_unique<SubTileSetAsset>(path, start, size, asset);
|
||||
} else if (type == "animation") {
|
||||
assetHandler = std::make_unique<AnimationAsset>(path, start, size, asset);
|
||||
@@ -280,8 +280,8 @@ std::unique_ptr<BaseAsset> getAssetHandlerByType(const std::filesystem::path& pa
|
||||
assetHandler = std::make_unique<GfxAsset>(path, start, size, asset);
|
||||
} else if (type == "palette") {
|
||||
assetHandler = std::make_unique<PaletteAsset>(path, start, size, asset);
|
||||
} else if (type == "tilemap" ||
|
||||
type == "tileset_types" || type == "tileset" ||
|
||||
} else if (type == "tileMap" ||
|
||||
type == "tileSet_types" || type == "tileSet" ||
|
||||
type == "map_mapping1" || type == "map_mapping2" ||
|
||||
type == "map_collision") {
|
||||
assetHandler = std::make_unique<MapAsset>(path, start, size, asset);
|
||||
|
||||
Vendored
+1
-1
@@ -37,7 +37,7 @@ unsigned char* LZDecompress(unsigned char* src, int srcSize, int* uncompressedSi
|
||||
|
||||
int blockPos = destPos - blockDistance;
|
||||
|
||||
// Some Ruby/Sapphire tilesets overflow.
|
||||
// Some Ruby/Sapphire tileSets overflow.
|
||||
if (destPos + blockSize > destSize) {
|
||||
blockSize = destSize - destPos;
|
||||
fprintf(stderr, "Destination buffer overflow.\n");
|
||||
|
||||
Vendored
+1
-1
@@ -312,7 +312,7 @@ void HandleLZCompressCommand(char* inputPath, char* outputPath, int argc, char**
|
||||
}
|
||||
}
|
||||
|
||||
// The overflow option allows a quirk in some of Ruby/Sapphire's tilesets
|
||||
// The overflow option allows a quirk in some of Ruby/Sapphire's tileSets
|
||||
// to be reproduced. It works by appending a number of zeros to the data
|
||||
// before compressing it and then amending the LZ header's size field to
|
||||
// reflect the expected size. This will cause an overflow when decompressing
|
||||
|
||||
Reference in New Issue
Block a user