Состояние игры, отвечающее за загрузку.
Загружает ассеты и создает соединение с сервером.
Асинхронное состояние.
Properties:
Name | Type | Default | Description |
---|---|---|---|
key |
string
|
'boot' | Название состояния. |
- Source:
- See:
Members
Methods
(static) loadAllColors(key1, key2, path1, path2, widthopt, heightopt, framesopt)
Загружает спрайты по шаблону 'key1_color_key2', 'path1_color_path2', [width], [height], [frames]
,
где color
это цвета из stateBoot.colors.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key1 |
string
|
||
key2 |
string
|
||
path1 |
string
|
||
path2 |
string
|
||
width |
number
|
<optional> |
|
height |
number
|
<optional> |
|
frames |
number
|
<optional> |
(static) updateLoadText(text)
Обновляет загрузочный текст.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
text |
string
|
загрузочный текст |