#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<Windows.h>
#define WIDTH 40
#define HEIGHT 20
#define SPACE 0
#define VEDGE 1
#define HEDGE 2
#define BALL 3
#define BAFFLE 4
#define BRICK 5
#define RIGHT 1
#define DOWN 1
#define UP -1
#define LEFT -1
int area_height;
int area_width;
int ball_col, ball_row;
int ball_vv, ball_vh;
int baffle_col, baffle_row;
int baffle_size;
int brick_col, brick_row;
int canvas[HEIGHT+1][WIDTH+1] = {
0 };
bool pause;
int score;
bool isLose;
void gotoxy(int x, int y)
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos;
pos.X =