Sans nom
public python v1 · immutable def labourer(self): self.cy, self.cx = 0, 0 if h.direction == "haut": self.cy = 20 elif h.direction == "bas": self.cy = 65 elif h.direction == "gauche": self.cx = -20 elif h.direction == "droite": self.cx = 20 for cas in caseliste: if h.x+self.cx > cas.x and h.x+self.cx < cas.x+30: if h.y+self.cy > cas.y and h.y+self.cy < cas.y+30: cas.changeimage("terre") a.affichage() return