mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/vca.md
This commit is contained in:
parent
0dfc87700d
commit
926bfc545d
2 changed files with 20 additions and 0 deletions
|
|
@ -86,6 +86,16 @@ For the `texture` directive, it is simpler. Example:
|
|||
> Here, `entities/tireman` is the name of the texture atlas containing `face_*` textures.
|
||||
> The texture does not necessarily have to be in an atlas.
|
||||
|
||||
If you do not wish to limit the animation duration via `configure` but want to loop the keyframe animation for a specific line, you can use the `period` parameter to specify the animation's repetition period in frames. Example:
|
||||
|
||||
```vcd
|
||||
@move by y curve linear period 24 {
|
||||
@key frame 0 value 0
|
||||
@key frame 12 value 1
|
||||
@key frame 24 value 0
|
||||
}
|
||||
```
|
||||
|
||||
## Expression curves
|
||||
|
||||
The attribute describes a function `f(t) = x`, where t is time in seconds.
|
||||
|
|
|
|||
|
|
@ -86,6 +86,16 @@ VCA файл состоит из набора директив, порядок
|
|||
> entities/tireman здесь - имя текстурного атласа, в котором находятся face_\* текстуры.
|
||||
> Текстура не обязательно должна находиться в атласе.
|
||||
|
||||
Если вы не хотите ограничивать длительность анимации через `configure`, но хотите зациклить анимацию по ключевым кадрам для конкретной линии, то можно использовать параметр `period` для указания периода повторения анимации в кадрах. Пример:
|
||||
|
||||
```vcd
|
||||
@move by y curve linear period 24 {
|
||||
@key frame 0 value 0
|
||||
@key frame 12 value 1
|
||||
@key frame 24 value 0
|
||||
}
|
||||
```
|
||||
|
||||
## Кривые через выражения
|
||||
|
||||
Через атрибут описывается функция `f(t) = x` где t - время в секундах.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue