From f6e452f5e31aa8d8e958ca70d162768e8e4b99e5 Mon Sep 17 00:00:00 2001 From: matixezor Date: Tue, 16 Mar 2021 23:15:41 +0100 Subject: [PATCH] code refactor --- src/const.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/const.py b/src/const.py index 3e23c0a..d875b7c 100644 --- a/src/const.py +++ b/src/const.py @@ -23,8 +23,7 @@ for img in [ ]: IMAGES.append(image.load(main_path + '/images/Tiles/' + img + ".png")) -IMAGES_MAPPING = [0 for _ in range(11)] -IMAGES_MAPPING[-3:] = [1 for _ in range(3)] +IMAGES_MAPPING = tuple([0 for _ in range(8)] + [1 for _ in range(3)]) ICON = main_path + '/images/mine_icon.png' SAPPER_IDLE = image.load(main_path + '/images/sapper_idle/cpt_bomba.png')