New sprites

This commit is contained in:
Niebby 2021-03-31 01:55:17 +02:00
parent 2c1097d6a9
commit 3917fbf26d
9 changed files with 3 additions and 2 deletions

View File

@ -5,12 +5,13 @@ from mesa.visualization.ModularVisualization import ModularServer
def player_representation(agent):
portrayal = {"Shape": "sprites/hero.png",
"Layer": 1}
"Layer": 2}
if agent.isBox:
portrayal["Shape"] = "sprites/box.png"
portrayal["Layer"] = 0
elif agent.isCreature:
portrayal["Shape"]='sprites/creature.png'
portrayal["Shape"]='sprites/goblin.png'
portrayal["Layer"] = 1
return portrayal
grid = CanvasGrid(player_representation, 10, 10, 500, 500)

BIN
sprites/bandit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

BIN
sprites/banditChieftain.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
sprites/goblin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 B

After

Width:  |  Height:  |  Size: 208 B

BIN
sprites/skeleton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

BIN
sprites/skeletonArcher.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B