diff --git a/images/sapper_idle/agent.png b/images/sapper_idle/agent.png new file mode 100644 index 0000000..8869cc5 Binary files /dev/null and b/images/sapper_idle/agent.png differ diff --git a/src/const.py b/src/const.py index d463233..c44629c 100644 --- a/src/const.py +++ b/src/const.py @@ -37,14 +37,8 @@ for name, val in { ) ICON = main_path + '/images/mine_icon.png' -SAPPER_IDLE = pg.image.load(main_path + '/images/sapper_idle/cpt_bomba.png') +SAPPER_IDLE = pg.image.load(main_path + '/images/sapper_idle/agent.png') -SAPPER_RUNNING = [] -for name in [ - 'cpt_bomba_left', - 'cpt_bomba_right', -]: - SAPPER_RUNNING.append(pg.image.load(main_path + '/images/sapper_idle/' + name + ".png")) DEFAULT_FIELD = [ [1, 3, 4, 5, 0, 1, 2, 3, 2, 0], diff --git a/src/game_ui.py b/src/game_ui.py index 6642acc..fa09081 100644 --- a/src/game_ui.py +++ b/src/game_ui.py @@ -2,7 +2,7 @@ import pygame as pg from agent import Agent from environment import Environment -from const import WIDTH, HEIGHT, IMAGES, SAPPER_RUNNING, SAPPER_IDLE +from const import WIDTH, HEIGHT, IMAGES, SAPPER_IDLE class GameUi: @@ -20,7 +20,6 @@ class GameUi: getattr(self.agent, coord) + (shift/8) if x != 7 else int(getattr(self.agent, coord) + (shift/8)) ) - self.agent.img = SAPPER_RUNNING[x % 2] self.update() self.clock.tick(15) self.agent.img = SAPPER_IDLE