// deplacement monstre
if dureeDeplacement != 0 {
x += deplaceHorizontal;
y += deplaceVertical;
dureeDeplacement --;
}
else {
deplaceHorizontal = 0;
deplaceVertical = 0;
dir = irandom(3);
switch(dir) {
case 0 : deplaceVertical = 1; break;
case 1 : deplaceHorizontal = 1; break;
case 2 : deplaceVertical = -1; break;
case 3 : deplaceHorizontal = -1; break;
dureeDeplacement = 120;