/
domahes
/
Arcade
Обзор
Документация
Войти
/
domahes
/
Arcade
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
js/data/DResAnimFrameAction.js
57 строк
1 KB
domahes
Initial commit with game files
01 июн 2026, 09:31
01 июн 2026, 09:31
0f50ffb
Код
Авторство
О чём код?
/** * Created by Yitian Chen on 2019/3/14. * Data structure of Key frame animation action */ function DResAnimFrameAction(rd){ //color of flash this.color = [0,0,0,0]; //flash color on actor this.actorColor = [0,0,0,0]; //frame this.index = rd.readShort(); //Whether there is a decision area this.isAtk = rd.readBool(); //DecisionX this.AtkX = rd.readShort(); //DecisionY this.AtkY = rd.readShort(); //Decision width this.AtkWidth = rd.readShort(); //Decision height this.AtkHeight = rd.readShort(); //flash or not this.isFlash = rd.readBool(); this.color[0] = rd.readShort(); this.color[1] = rd.readShort(); this.color[2] = rd.readShort(); this.color[3] = rd.readShort(); //duration of flash this.flashTime = rd.readShort(); //transparent or not this.isOpactiy = rd.readBool(); //Opacity this.opacity = rd.readShort(); //duration of changing opacity this.opacityTime = rd.readShort(); //Zoom or not this.isZoom = rd.readBool(); //zoom x this.zoomX = rd.readShort(); //zoom y this.zoomY = rd.readShort(); //duration of zoom this.zoomTime = rd.readShort(); //actor flash or not this.isActorFlash = rd.readBool(); this.actorColor[0] = rd.readShort(); this.actorColor[1] = rd.readShort(); this.actorColor[2] = rd.readShort(); this.actorColor[3] = rd.readShort(); //duration of actor flash this.actorFlashTime = rd.readShort(); }