changed agent image
This commit is contained in:
parent
51f912f22d
commit
71b310ad4c
BIN
images/sapper_idle/agent.png
Normal file
BIN
images/sapper_idle/agent.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
@ -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],
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user