|
|
|
@ -103,7 +103,27 @@ class Poule :
|
|
|
|
|
def afficher(self) : |
|
|
|
|
pyxel.blt(self.x,self.y,0,0,8,8,8) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Map: |
|
|
|
|
def __init__(self,maitre:"Maitre",chien:"Chien") : |
|
|
|
|
self.maitre = maitre |
|
|
|
|
self.chien = chien |
|
|
|
|
self.map = [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]] |
|
|
|
|
|
|
|
|
|
class Jeu: |
|
|
|
|
"""Classe intégrant la gestion du jeu.""" |
|
|
|
|
def __init__(self) -> None: |
|
|
|
|