feat: 添加每个图块的图标
@ -15,7 +15,7 @@ GINKA Model 内部集成了 Minamo Model 用于判别两个地图的相似性,
|
||||
5. 将所有的墙壁换成黄墙(数字 1)
|
||||
6. 将所有的血瓶换成红血瓶(数字 31),所有红宝石换成最基础的红宝石(数字 27),蓝宝石换成最基础的蓝宝石(数字 28),道具全部换为幸运金币(数字 53),剑盾可以当成红蓝宝石看待,删除除此之外的资源
|
||||
7. 所有钥匙换成黄钥匙(数字 21),所有门换成黄门(数字 81)
|
||||
8. 所有箭头换成样板原版箭头(数字 161 至 164),所有上下楼梯换成样板原版楼梯(数字 87 和 88)
|
||||
8. 所有箭头换成样板原版箭头(数字 91 至 94),所有上下楼梯换成样板原版楼梯(数字 87 和 88)
|
||||
9. 怪物分为三个强度,弱怪,中怪,强怪,弱怪换为绿头怪(数字 201),中怪换成红头怪(数字 202),强怪换成青头怪(数字 203)
|
||||
10. 在 `project` 文件夹下创建 `ginka-config.json` 文件,双击进入编辑,粘贴如下模板:
|
||||
|
||||
|
||||
@ -11,10 +11,10 @@ const numMap: Record<number, number> = {
|
||||
203: 9, // 强怪
|
||||
87: 10, // 楼梯
|
||||
88: 10, // 楼梯
|
||||
161: 11, // 箭头
|
||||
162: 11, // 箭头
|
||||
163: 11, // 箭头
|
||||
164: 11, // 箭头
|
||||
91: 11, // 箭头
|
||||
92: 11, // 箭头
|
||||
93: 11, // 箭头
|
||||
94: 11, // 箭头
|
||||
53: 12 // 道具
|
||||
};
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { writeFile } from 'fs-extra';
|
||||
import { FloorData, getAllFloors, parseTowerInfo } from './utils';
|
||||
import { Presets, SingleBar } from 'cli-progress';
|
||||
|
||||
interface GinkaConfig {
|
||||
clip: {
|
||||
@ -25,6 +26,10 @@ const [output, ...list] = process.argv.slice(2);
|
||||
function parseAllData(data: Map<string, FloorData>) {
|
||||
const resolved: Record<string, GinkaTrainData> = {};
|
||||
|
||||
const progress = new SingleBar({}, Presets.shades_classic);
|
||||
progress.start(data.size, 0);
|
||||
let i = 0;
|
||||
|
||||
data.forEach((floor, key) => {
|
||||
const config = floor.config as GinkaConfig;
|
||||
const text = config.data[floor.id] ?? [];
|
||||
@ -33,6 +38,8 @@ function parseAllData(data: Map<string, FloorData>) {
|
||||
size: [floor.map[0].length, floor.map.length],
|
||||
text: text
|
||||
};
|
||||
i++;
|
||||
progress.update(i);
|
||||
});
|
||||
|
||||
const dataset: GinkaDataset = {
|
||||
|
||||
BIN
tiles/0.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
tiles/1.png
Normal file
|
After Width: | Height: | Size: 576 B |
BIN
tiles/10.png
Normal file
|
After Width: | Height: | Size: 699 B |
BIN
tiles/11_1.png
Normal file
|
After Width: | Height: | Size: 323 B |
BIN
tiles/11_2.png
Normal file
|
After Width: | Height: | Size: 311 B |
BIN
tiles/11_3.png
Normal file
|
After Width: | Height: | Size: 312 B |
BIN
tiles/11_4.png
Normal file
|
After Width: | Height: | Size: 308 B |
BIN
tiles/12.png
Normal file
|
After Width: | Height: | Size: 412 B |
BIN
tiles/2.png
Normal file
|
After Width: | Height: | Size: 368 B |
BIN
tiles/3.png
Normal file
|
After Width: | Height: | Size: 406 B |
BIN
tiles/4.png
Normal file
|
After Width: | Height: | Size: 396 B |
BIN
tiles/5.png
Normal file
|
After Width: | Height: | Size: 441 B |
BIN
tiles/6.png
Normal file
|
After Width: | Height: | Size: 426 B |
BIN
tiles/7.png
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
tiles/8.png
Normal file
|
After Width: | Height: | Size: 382 B |
BIN
tiles/9.png
Normal file
|
After Width: | Height: | Size: 387 B |