mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-05-14 04:41:12 +08:00
fix: 箭头方向
This commit is contained in:
parent
fbfa5f3141
commit
3eb80d79c7
@ -42,13 +42,13 @@ def matrix_to_image_cv(map_matrix, tile_set, tile_size=32):
|
||||
|
||||
if tile_index == '11':
|
||||
if row == 0:
|
||||
tile_index = '11_2'
|
||||
elif row == W - 1:
|
||||
tile_index = '11_4'
|
||||
elif col == 0:
|
||||
tile_index = '11_1'
|
||||
elif col == H - 1:
|
||||
elif row == W - 1:
|
||||
tile_index = '11_3'
|
||||
elif col == 0:
|
||||
tile_index = '11_2'
|
||||
elif col == H - 1:
|
||||
tile_index = '11_4'
|
||||
|
||||
# 叠加其他透明图块
|
||||
if tile_index in tile_set and tile_index != 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user