All pastes #330114 Raw Edit

Sans nom

public python v1 · immutable
#330114 ·published 2007-01-27 14:02 UTC
rendered paste body
    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