Browse Source

Mise à jour de 'app.py'

master
w_iyad 1 month ago
parent
commit
8b817e5cca
  1. 22
      app.py

22
app.py

@ -103,7 +103,27 @@ class Poule :
def afficher(self) : def afficher(self) :
pyxel.blt(self.x,self.y,0,0,8,8,8) 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: class Jeu:
"""Classe intégrant la gestion du jeu.""" """Classe intégrant la gestion du jeu."""
def __init__(self) -> None: def __init__(self) -> None:

Loading…
Cancel
Save