added multiple pnj sprites
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.7 KiB |
BIN
assets/pnj/pnj1.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/pnj/pnj2.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/pnj/pnj3.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
assets/pnj/pnj4.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
assets/pnj/pnj5.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/pnj/pnj6.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
assets/pnj/pnj7.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
assets/pnj/pnj8.png
Normal file
After Width: | Height: | Size: 11 KiB |
2
game.py
@ -134,7 +134,7 @@ class Village:
|
|||||||
for i in range(nb_pnj):
|
for i in range(nb_pnj):
|
||||||
start_waypoint = Waypoint(random.choice(("A", "B", "C", "D", "E", "F", "G", "H")))
|
start_waypoint = Waypoint(random.choice(("A", "B", "C", "D", "E", "F", "G", "H")))
|
||||||
objective_waypoint = start_waypoint.get_new_connected()
|
objective_waypoint = start_waypoint.get_new_connected()
|
||||||
self.liste_pnj.append(Pnj(start_waypoint.x, start_waypoint.y, "assets/MiniPeasant.png", start_waypoint.get_direction(start_waypoint, objective_waypoint), objective_waypoint, random.randint(1, 4)))
|
self.liste_pnj.append(Pnj(start_waypoint.x, start_waypoint.y, "assets/pnj/pnj"+str(random.randint(1,8))+".png", start_waypoint.get_direction(start_waypoint, objective_waypoint), objective_waypoint, random.randint(1, 4)))
|
||||||
|
|
||||||
def ajouter_pnj_random(self)-> None:
|
def ajouter_pnj_random(self)-> None:
|
||||||
pass
|
pass
|
||||||
|