CODE:
int Image_0[50][50];loadimage (#Image_0[0][0], "C:\Image_0.bmp");
int Image_1[50][50];loadimage (#Image_1[0][0], "C:\Image_1.bmp");
int Image_2[50][50];loadimage (#Image_2[0][0], "C:\Image_2.bmp");
int x[100], y[100];
int xx, yy;
int r=80, p=80;
int screen_[1366][436];
loop()
{
screen (#screen_[0][0], 0, 00, 1366, 436, -1);
int k=findimage(100, #Image_0[0][0], 0, #x[0], #y[0], 50, 0, 1200, 436, r, r, r, r, r, r, p, 1, #screen_[0][0]);
for (int n=0; n<k; n++)
{
if (findimage(1, #Image_1[0][0], -1, #xx, #yy, 50+x[n]+30, y[n]+20, 50+x[n]+70, y[n]+50, r, r, r, r, r, r, p, 1, #screen_[0][0])==1)
{
if (findimage(1, #Image_2[0][0], -1, #xx, #yy, 50+x[n]-10, y[n]+60, 50+x[n]+20, y[n]+75, r, r, r, r, r, r, p, 1, #screen_[0][0])==1)
{
textout(0, 50+x[n], y[n]-20, "WWWWW", 0);
goto ee;
}
}
}
textout(0, -100, -100, "WWWWW", 0);
ee:;
sleep(10);
}
int Image_1[50][50];loadimage (#Image_1[0][0], "C:\Image_1.bmp");
int Image_2[50][50];loadimage (#Image_2[0][0], "C:\Image_2.bmp");
int x[100], y[100];
int xx, yy;
int r=80, p=80;
int screen_[1366][436];
loop()
{
screen (#screen_[0][0], 0, 00, 1366, 436, -1);
int k=findimage(100, #Image_0[0][0], 0, #x[0], #y[0], 50, 0, 1200, 436, r, r, r, r, r, r, p, 1, #screen_[0][0]);
for (int n=0; n<k; n++)
{
if (findimage(1, #Image_1[0][0], -1, #xx, #yy, 50+x[n]+30, y[n]+20, 50+x[n]+70, y[n]+50, r, r, r, r, r, r, p, 1, #screen_[0][0])==1)
{
if (findimage(1, #Image_2[0][0], -1, #xx, #yy, 50+x[n]-10, y[n]+60, 50+x[n]+20, y[n]+75, r, r, r, r, r, r, p, 1, #screen_[0][0])==1)
{
textout(0, 50+x[n], y[n]-20, "WWWWW", 0);
goto ee;
}
}
}
textout(0, -100, -100, "WWWWW", 0);
ee:;
sleep(10);
}