Browse Source

Mise à jour de 'app.py'

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

20
app.py

@ -103,6 +103,26 @@ 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."""

Loading…
Cancel
Save