przeniesienie zdjęć
6
mobs.py
@ -14,7 +14,7 @@ class Archer_ork(pygame.sprite.Sprite):
|
|||||||
self.width = TILE_SIZE
|
self.width = TILE_SIZE
|
||||||
self.height = TILE_SIZE
|
self.height = TILE_SIZE
|
||||||
|
|
||||||
self.image_path = "./pozostale_zdjecia/ork_lucznik.png"
|
self.image_path = "./zdjecia/ORK_ARCHER/ork_lucznik.png"
|
||||||
self.ARCHER_ORK_IMG = pygame.image.load(self.image_path)
|
self.ARCHER_ORK_IMG = pygame.image.load(self.image_path)
|
||||||
self.ARCHER_ORK = pygame.transform.scale(self.ARCHER_ORK_IMG,(64,64))
|
self.ARCHER_ORK = pygame.transform.scale(self.ARCHER_ORK_IMG,(64,64))
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ class Infantry_ork(pygame.sprite.Sprite):
|
|||||||
self.width = TILE_SIZE
|
self.width = TILE_SIZE
|
||||||
self.height = TILE_SIZE
|
self.height = TILE_SIZE
|
||||||
|
|
||||||
self.image_path = "./pozostale_zdjecia/ork-piechota.png"
|
self.image_path = "./zdjecia/ORK_MELEE/ork-piechota.png"
|
||||||
self.INFANTRY_ORK_IMG = pygame.image.load(self.image_path)
|
self.INFANTRY_ORK_IMG = pygame.image.load(self.image_path)
|
||||||
self.INFANTRY_ORK = pygame.transform.scale(self.INFANTRY_ORK_IMG,(64,64))
|
self.INFANTRY_ORK = pygame.transform.scale(self.INFANTRY_ORK_IMG,(64,64))
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ class Sauron(pygame.sprite.Sprite):
|
|||||||
self.width = TILE_SIZE
|
self.width = TILE_SIZE
|
||||||
self.height = TILE_SIZE
|
self.height = TILE_SIZE
|
||||||
|
|
||||||
self.image_path = "./pozostale_zdjecia/sauron.png"
|
self.image_path = "./zdjecia/SAURON/sauron.png"
|
||||||
self.SAURON_IMG = pygame.image.load(self.image_path)
|
self.SAURON_IMG = pygame.image.load(self.image_path)
|
||||||
self.SAURON = pygame.transform.scale(self.SAURON_IMG,(64,64))
|
self.SAURON = pygame.transform.scale(self.SAURON_IMG,(64,64))
|
||||||
|
|
||||||
|
2
nn.py
@ -93,7 +93,7 @@ class NeuralN:
|
|||||||
tf.keras.layers.Softmax()])
|
tf.keras.layers.Softmax()])
|
||||||
|
|
||||||
#image_path = image
|
#image_path = image
|
||||||
image_path = pathlib.Path('zdjecia\ORK_ARCHER\ork_archer (942).jpg')
|
image_path = pathlib.Path('zdjecia\ORK_ARCHER\ork_lucznik.png')
|
||||||
image = Image.open(image_path)
|
image = Image.open(image_path)
|
||||||
|
|
||||||
# Preprocess the image
|
# Preprocess the image
|
||||||
|
Before Width: | Height: | Size: 216 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 58 KiB |
BIN
zdjecia/ORK_ARCHER/ork_lucznik.png
Normal file
After Width: | Height: | Size: 227 KiB |
BIN
zdjecia/ORK_MELEE/ork-piechota.png
Normal file
After Width: | Height: | Size: 212 KiB |
BIN
zdjecia/SAURON/sauron.png
Normal file
After Width: | Height: | Size: 135 KiB |