From 3917fbf26d52b3c471d3fbb7af154be7284b13f1 Mon Sep 17 00:00:00 2001 From: Niebby Date: Wed, 31 Mar 2021 01:55:17 +0200 Subject: [PATCH] New sprites --- server.py | 5 +++-- sprites/bandit.png | Bin 0 -> 197 bytes sprites/banditChieftain.png | Bin 0 -> 193 bytes sprites/box.png | Bin 153 -> 150 bytes sprites/creature.png | Bin 3877 -> 0 bytes sprites/goblin.png | Bin 0 -> 189 bytes sprites/hero.png | Bin 221 -> 208 bytes sprites/skeleton.png | Bin 0 -> 201 bytes sprites/skeletonArcher.png | Bin 0 -> 204 bytes 9 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 sprites/bandit.png create mode 100644 sprites/banditChieftain.png delete mode 100644 sprites/creature.png create mode 100644 sprites/goblin.png create mode 100644 sprites/skeleton.png create mode 100644 sprites/skeletonArcher.png 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 0000000000000000000000000000000000000000..cc374de628a37c4b61c5ec503d389e57e899bc4c GIT binary patch literal 197 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`)O)%(hGJpvb|zJnjGg)NczS96u@?3sPTDz_MU#I!8i;Q1yK7B+(aB=9opzbdc9AyBcV; zOM`F889nv*s5^6)RI%LkOI#(MUaho|_15{LcMqEfPdWW%;|hjyt@+L2D;k~)EXpq9 vp5=1(m(=MgRXZX>YP6QDso8d-zD?eCiJn~0f{$~6PGRtL^>bP0l+XkK;jv07 literal 0 HcmV?d00001 diff --git a/sprites/banditChieftain.png b/sprites/banditChieftain.png new file mode 100644 index 0000000000000000000000000000000000000000..7a80ec42fbe1ba71a8a0f6b33546cd6ca78752dc GIT binary patch literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`RC~HOhG6v#o9!|;N rto5C)@%HHIr4KIJ?EM!jnq!;)I>$&%)~i+==nMu=S3j3^P6 literal 0 HcmV?d00001 diff --git a/sprites/box.png b/sprites/box.png index 42785e9ce6ee51119427fc0e2d3211029bbd62a4..8fb24eb90eff8493de1146257a1281d4694d0dfd 100644 GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`1bDhQhGe&B!N&O8%Q;z&T$Jl9>{P6q5?UDbbCYbgxxG6XVEUVnl)L8s$k44ofy`glX(f`1bezThGC|afB^?fy6XS>qBjS(aG5T-{?75BV7XwO!rFJ%V%+;4GI8s;tW}Va5s^^)7P6mT z`Hjq`ul_bhFJshrT6#u%F4?7`}^VH;i96V{QUgh-rnx+?o3Qf)6>(px3{gWt?20JmzS4va&oY+ zuxo2;^78UIIXQ@kh=GBDo12?KK|#R4zz`4+Q&UrUd3i4{FGoj5US3`v9v&AL7gUG#n?mbi&^s?ij zl)4+HFY<dX)YIpwDXuLeFIq#(FKWy@HY}P5KqxSg1-^Z*1C-c>Fe#K9cu!F!R|=kk5;dApDK`-AT=)L1X7bcqMZpa3S{lQYHv+*=TX-9~blSvbh}37svkL+w|;fsnC%I*Km8feXy_r zTqfA#tLDj$EJ8mgu0}>@@+r0Ts%vV1e}A09Ke;+FgEvQ%t<`3FlJ{_^VnjW3){?p2 zS0zXrji!D2037_z>h5)MJD;V+v zZRKoK36FKf;k^2A^b%>=iwxGH6MX)E2mWVNFDk_MXrD78Q3*$!@ph_8+^t#B4xmFH z(?9&IV3>;us}GbeKmSby2{69Rlt|!$<@y+risl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/goblin.png b/sprites/goblin.png new file mode 100644 index 0000000000000000000000000000000000000000..f2002d30d2c9fa39d256af54c1140caf348db22a GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`lzX~3hG%N zCx))6H!bcaym^0p={8BO&;I_af;l|h|AjIn{JS)3hMxak+b+{~1HTWEt1DjR%-0q8 lb$y-0v}0A9yq?DFs?(RzP&j=m$r9)U22WQ%mvv4FO#r5-L$Lq= literal 0 HcmV?d00001 diff --git a/sprites/hero.png b/sprites/hero.png index d085be9f9ce64e71844b50b69d29ef7747c10b50..98f4a9b50447239ce4abb8c09f86581bbadd67a7 100644 GIT binary patch literal 208 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`ba}cshGk=e_#Lf*TOfBsh^Lkbtj9g=n=Gk@lWW#BZI-I&MCr2?bf^OJ(C=+=)pLt zsP*vXb}s(7pKe7phyJj7Dnw42xOIMS|I$vmDa^YP4&*)LmfJ2cHKy*yNqq(zt4-c@ zp%+Z^rXJ|-J@(V;)TC!VEI02T46A>4c~z8kr{`0X^8AG?5l(hy>lP@Mr&}=ojgR7b TS9#<#(1{G5u6{1-oD!M<&$U-^ diff --git a/sprites/skeleton.png b/sprites/skeleton.png new file mode 100644 index 0000000000000000000000000000000000000000..9908617c753ce7eb49871bc724597168639cd414 GIT binary patch literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`G<&)@hGHsomX`Tsw)xQD4H_NV+DYRv+jb22WQ%mvv4FO#qvfNZJ4Z literal 0 HcmV?d00001 diff --git a/sprites/skeletonArcher.png b/sprites/skeletonArcher.png new file mode 100644 index 0000000000000000000000000000000000000000..ff8fc72fba2b805a4cc3981ed0946a9fd5c33d83 GIT binary patch literal 204 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m7>k44ofy`glX(f`w0XKXhGQ;y!-#unMEN+v0q$WRJ2OU7P;D%zoOoArU(7bGPSrU)%qRZnsBu>bYiVq(zG7<; z8#Y6EsS4*Vb+xa4ZqnRr4xHid)466ko^NTCpLE4s_K=4CNuY}uJYD@<);T3K0RR{Q BM&bYf literal 0 HcmV?d00001