From 763c60543729651d22f67f78c33beb11fd73428d Mon Sep 17 00:00:00 2001 From: dungdq Date: Thu, 12 Jun 2025 14:31:15 +0700 Subject: [PATCH] update final game assets structure --- .../01-default-assets-structure.md | 27 +++++++------------ package-lock.json | 6 ++--- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/docs/04-game-asset-structure/01-default-assets-structure.md b/docs/04-game-asset-structure/01-default-assets-structure.md index aa40284..e836f76 100644 --- a/docs/04-game-asset-structure/01-default-assets-structure.md +++ b/docs/04-game-asset-structure/01-default-assets-structure.md @@ -235,7 +235,7 @@ Feature game assets (e.g., free-game, pickup, bonus, gamble) are stored in a fol #### Localized Assets -The `localizes/` folder contains assets tailored for different languages (e.g., ZH, TH, ID). This ensures that fonts and textures can be displayed appropriately for each supported locale. +The `localizes/` folder stores language-specific assets (e.g., `zh`, `th`, `id`, etc.), allowing the game to display the correct fonts and textures based on the selected language. ##### Folder structure: @@ -263,25 +263,18 @@ The `localizes/` folder contains assets tailored for different languages (e.g., --- -#### Meta JSON Merger (Cocos Creator Editor Extension) +#### Meta JSON Merger ##### Purpose -Merges multiple JSON metadata files from `library/imports/` into one consolidated file (`fullMetaData.json`) to streamline asset management and build optimization. +Merges JSON metadata files under library/imports/ into one fullMetaData.json. ![Purpose](./img/merge-json-assets.png) -##### Features +###### Excludes: -- Recursively collects `.json` files (excluding `fullMetaData.json`) -- Filters out: - - `cc.SceneAsset` - - `cc.Prefab` - -##### Example - -- **Input**: `{Project}/library/imports/**/*.json` -- **Output**: `{Project}/library/imports/fullMetaData.json` +- cc.SceneAsset +- cc.Prefab ```json { @@ -291,11 +284,11 @@ Merges multiple JSON metadata files from `library/imports/` into one consolidate ``` --- -#### Texture Compression Tool (Cocos Creator Extension) +#### Texture Compression Tool ##### Purpose -This editor extension manages texture compression settings for game assets to optimize performance and build size. +Manages and applies compression settings to game textures. ![Compression](./img/compress-over.png) @@ -327,11 +320,11 @@ Compression settings for PNG and JPG formats: --- -#### Remove Packable Texture – Cocos Creator Tool +#### Remove Packable Texture Tool ##### Overview -This editor extension removes the `packable` flag from all texture assets in your project, preventing them from being packed into texture atlases. +Removes the `packable` flag from all texture assets to prevent automatic atlas packing. ![Remove Packable](./img/remove-packable-texture.png) diff --git a/package-lock.json b/package-lock.json index 51f703c..2a25849 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8091,9 +8091,9 @@ } }, "node_modules/docusaurus-lunr-search": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/docusaurus-lunr-search/-/docusaurus-lunr-search-3.6.1.tgz", - "integrity": "sha512-ms2FWYzR7OrvS2x0/HSPaAenAATrBenGpCwWpjmpK8SnUpqygVPvuss2RG5l2ZuMxpKFP0rhEnEy8Kx4lSQimw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/docusaurus-lunr-search/-/docusaurus-lunr-search-3.6.0.tgz", + "integrity": "sha512-CCEAnj5e67sUZmIb2hOl4xb4nDN07fb0fvRDDmdWlYpUvyS1CSKbw4lsGInLyUFEEEBzxQmT6zaVQdF/8Zretg==", "license": "MIT", "dependencies": { "autocomplete.js": "^0.37.1",