Compare commits
5 Commits
c286baac6f
...
9e6f6c9ce4
Author | SHA1 | Date | |
---|---|---|---|
|
9e6f6c9ce4 | ||
|
9961040eee | ||
|
273d7ea74c | ||
d1c23fc358 | |||
![]() |
cdc20630c3 |
@ -3,9 +3,6 @@ sidebar_position: 1
|
|||||||
---
|
---
|
||||||
|
|
||||||
# System
|
# System
|
||||||
|
|
||||||
> To be added
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
> To be added
|
> To be added
|
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 14
|
||||||
|
---
|
||||||
|
|
||||||
|
# Sprite Frame Provider Setup
|
||||||
|
---
|
||||||
|
**SpriteFrameProvider** allows global access to "sprite frames" from code.
|
||||||
|
|
||||||
|

|
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 15
|
||||||
|
---
|
||||||
|
|
||||||
|
# Set Up the Animation Provider
|
||||||
|
---
|
||||||
|
**Animation Provider** contains all **animations** of the game.
|
||||||
|
|
||||||
|

|
@ -4,14 +4,7 @@
|
|||||||
"collapsible": true,
|
"collapsible": true,
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "generated-index",
|
"type": "doc",
|
||||||
"title": "Setup Main Game",
|
"id": "main-scene-overview"
|
||||||
"description": "This is where all the magic happen.",
|
|
||||||
"keywords": [
|
|
||||||
"setup",
|
|
||||||
"main game",
|
|
||||||
"game logic",
|
|
||||||
"structure"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
id: main-scene-overview
|
||||||
|
title: Setup Main Game
|
||||||
|
description: Main scene structure and setup process.
|
||||||
|
---
|
||||||
|
|
||||||
|
# Main Scene
|
||||||
|
|
||||||
|
This is where all the magic happen.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Main scene is the most complicated scene with hundreds of object, script and config.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Yet it is suprisingly simple to use.
|
||||||
|
|
||||||
|
By following step by step setup, you'll have a working main scene in no time.
|
||||||
|
|
||||||
|
:::info
|
||||||
|
In fact, if all of the other scenes are setup properly, you can even run test the game without any setup on main scene.
|
||||||
|
|
||||||
|
Try to run the project, you'll the result as below. It doesn't look like much but it is actually a game running without visual assets.
|
||||||
|
|
||||||
|

|
||||||
|
:::
|
||||||
|
|
@ -0,0 +1,48 @@
|
|||||||
|
# Setup After Change Assets
|
||||||
|
|
||||||
|
## CUSTOM-SCALE
|
||||||
|
|
||||||
|
:::info
|
||||||
|
Short description: This helper will help you update file custom-scale-data, which can auto scale your asset to optimize.
|
||||||
|
:::
|
||||||
|

|
||||||
|
|
||||||
|
This file will change after you run this.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## REMOVE PACKAGE
|
||||||
|
:::info
|
||||||
|
Short description: Asset of cocos will auto pack atlas when build. Our atlas already packed by tps, so we have to remove this setting.
|
||||||
|
:::
|
||||||
|

|
||||||
|
|
||||||
|
Your asset will change this setting.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## COMPRESS TEXTURE FORMAT
|
||||||
|
:::info
|
||||||
|
Short description: This helper will help you update file custom-scale-data, which can auto scale your asset to optimize.
|
||||||
|
:::
|
||||||
|

|
||||||
|
|
||||||
|
Your asset will change this setting.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## RUN PRELOAD HYPER HELPER
|
||||||
|
:::info
|
||||||
|
Short description: This helper will setup to load your assets with mobile/desktop & localize.
|
||||||
|
:::
|
||||||
|

|
||||||
|
:::warning
|
||||||
|
Remember open preload scene when run this helper.
|
||||||
|
:::
|
||||||
|
|
||||||
|
## MERGE JSON FILES
|
||||||
|
:::info
|
||||||
|
Short description: This helper merges all your JSON files into one, helping the game run faster in the editor.
|
||||||
|
:::
|
||||||
|

|
BIN
docs/05-custom-cocos-engine/img/compress-texture.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
docs/05-custom-cocos-engine/img/custom-scale.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
docs/05-custom-cocos-engine/img/remove-packable.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
docs/05-custom-cocos-engine/img/run-compress-texture.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
docs/05-custom-cocos-engine/img/run-custom-scale.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
docs/05-custom-cocos-engine/img/run-merge-json.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
docs/05-custom-cocos-engine/img/run-preload-helper.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
docs/05-custom-cocos-engine/img/run-remove-packable.png
Normal file
After Width: | Height: | Size: 13 KiB |