first commit

master
unknown 6 years ago
parent d06e63f774
commit e6bfa98714

@ -464,9 +464,9 @@ void Make(struct Tetris *tetris)
case 18: // Ëł180 ˇ´7 case 18: // Ëł180 ˇ´7
{ {
color(11); color(11);
a[tetris->x][tetris->y-2]=b[1]; a[tetris->x][tetris->y+1]=b[1];
a[tetris->x][tetris->y-1]=b[2]; a[tetris->x][tetris->y-1]=b[2];
a[tetris->x-2][tetris->y]=b[3]; a[tetris->x-2][tetris->y+1]=b[3];
break; break;
} }
@ -474,8 +474,8 @@ void Make(struct Tetris *tetris)
{ {
color(12); color(12);
a[tetris->x+2][tetris->y]=b[1]; a[tetris->x+2][tetris->y]=b[1];
a[tetris->x+4][tetris->y]=b[2]; a[tetris->x-2][tetris->y]=b[2];
a[tetris->x][tetris->y-1]=b[3]; a[tetris->x-2][tetris->y-1]=b[3];
break; break;
} }
} }
@ -846,22 +846,22 @@ int ifMove(struct Tetris *tetris)
( // Ëł90 ˇ´7 ( // Ëł90 ˇ´7
tetris->flag==17 && tetris->flag==17 &&
( a[tetris->x-2][tetris->y]==0&& ( a[tetris->x-2][tetris->y]==0&&
a[tetris->x-4][tetris->y]==0&& a[tetris->x+2][tetris->y+1]==0&&
a[tetris->x][tetris->y+1]==0) a[tetris->x+2][tetris->y]==0)
) )
|| ||
( //Ëł180 ˇ´7 ( //Ëł180 ˇ´7
tetris->flag==18 && tetris->flag==18 &&
( a[tetris->x][tetris->y-2]==0&& ( a[tetris->x][tetris->y+1]==0&&
a[tetris->x][tetris->y-1]==0&& a[tetris->x][tetris->y-1]==0&&
a[tetris->x-2][tetris->y]==0) a[tetris->x-2][tetris->y+1]==0)
) )
|| ||
( //Ëł270 ˇ´7 ( //Ëł270 ˇ´7
tetris->flag==19 && tetris->flag==19 &&
( a[tetris->x+2][tetris->y]==0&& ( a[tetris->x+2][tetris->y]==0&&
a[tetris->x+4][tetris->y]==0&& a[tetris->x-2][tetris->y]==0&&
a[tetris->x][tetris->y-1]==0) a[tetris->x-2][tetris->y-1]==0)
) )
) )
{ {
Loading…
Cancel
Save