diff --git a/server.py b/server.py index f8c0e2d..5e382d0 100644 --- a/server.py +++ b/server.py @@ -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) diff --git a/sprites/bandit.png b/sprites/bandit.png new file mode 100644 index 0000000..cc374de Binary files /dev/null and b/sprites/bandit.png differ diff --git a/sprites/banditChieftain.png b/sprites/banditChieftain.png new file mode 100644 index 0000000..7a80ec4 Binary files /dev/null and b/sprites/banditChieftain.png differ diff --git a/sprites/box.png b/sprites/box.png index 42785e9..8fb24eb 100644 Binary files a/sprites/box.png and b/sprites/box.png differ diff --git a/sprites/creature.png b/sprites/creature.png deleted file mode 100644 index 8dcf4ac..0000000 Binary files a/sprites/creature.png and /dev/null differ diff --git a/sprites/goblin.png b/sprites/goblin.png new file mode 100644 index 0000000..f2002d3 Binary files /dev/null and b/sprites/goblin.png differ diff --git a/sprites/hero.png b/sprites/hero.png index d085be9..98f4a9b 100644 Binary files a/sprites/hero.png and b/sprites/hero.png differ diff --git a/sprites/skeleton.png b/sprites/skeleton.png new file mode 100644 index 0000000..9908617 Binary files /dev/null and b/sprites/skeleton.png differ diff --git a/sprites/skeletonArcher.png b/sprites/skeletonArcher.png new file mode 100644 index 0000000..ff8fc72 Binary files /dev/null and b/sprites/skeletonArcher.png differ