/
domahes
/
Arcade
Обзор
Документация
Войти
/
domahes
/
Arcade
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
js/data/DResBaseBlock.js
30 строк
664 B
domahes
Initial commit with game files
01 июн 2026, 09:31
01 июн 2026, 09:31
0f50ffb
Код
Авторство
О чём код?
/** * Created by Yitian Chen on 2019/1/7. * Data structure of block resource */ function DResBaseBlock(rd){ //block ID this.id = rd.readShort(); //draw type this.drawType = rd.readShort(); //file path this.file = rd.readString(); //name this.name = rd.readString(); //note this.msg = rd.readString(); //layer(z) this.z = rd.readShort(); //Death after Submersion this.mDie = rd.readBool(); //Drag Coefficient this.mNum = rd.readShort(); var length = rd.readInt(); //animation list this.anim = []; for(var i = 0;i<length;i++){ this.anim.push(new DAnimRect(rd)); } }