15 lines
446 B
C
15 lines
446 B
C
#include <graph.h>
|
|
|
|
#include "initialisation.h"
|
|
|
|
|
|
int VerifBlock1(int SourisX, int SourisY, int maxX, int maxY, int taille, int* coordoner){
|
|
int placement = 1, placementX = 0, placementY = 0;
|
|
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;
|
|
}
|