mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-05-21 02:11:13 +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 tile_index == '11':
|
||||||
if row == 0:
|
if row == 0:
|
||||||
tile_index = '11_2'
|
|
||||||
elif row == W - 1:
|
|
||||||
tile_index = '11_4'
|
|
||||||
elif col == 0:
|
|
||||||
tile_index = '11_1'
|
tile_index = '11_1'
|
||||||
elif col == H - 1:
|
elif row == W - 1:
|
||||||
tile_index = '11_3'
|
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:
|
if tile_index in tile_set and tile_index != 0:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user