20 lines
522 B
C
20 lines
522 B
C
#include <graph.h>
|
|
|
|
#include "initialisation.h"
|
|
|
|
|
|
int VerifBlock1(int maxX, int maxY, int taille, int* coordoner){
|
|
int SourisX = 0, SourisY = 0, placement = 1, placementX = 0, placementY = 0;
|
|
if(SourisCliquee()){
|
|
SourisX = _X;
|
|
SourisY = _Y;
|
|
}
|
|
if(SourisX >= 50 && SourisX <= maxX && SourisY >= 100 && SourisY <= maxY){
|
|
placementX = initialisationXbox(SourisX, maxX, taille);
|
|
placementY = initialisationYbox(SourisY, maxY, taille);
|
|
}
|
|
coordoner[0] = placementX;
|
|
coordoner[1] = placementY;
|
|
coordoner[2] = 6;
|
|
}
|