feat: 添加每个图块的图标

This commit is contained in:
unanmed 2025-03-19 21:55:38 +08:00
parent 7aa8939e4e
commit b2e1acb617
19 changed files with 12 additions and 5 deletions

View File

@ -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` 文件,双击进入编辑,粘贴如下模板:

View File

@ -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 // 道具
};

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
tiles/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
tiles/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
tiles/11_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

BIN
tiles/11_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

BIN
tiles/11_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

BIN
tiles/11_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

BIN
tiles/12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

BIN
tiles/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

BIN
tiles/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

BIN
tiles/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

BIN
tiles/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

BIN
tiles/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

BIN
tiles/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

BIN
tiles/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
tiles/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B