public Car(int x, int y, int type, int imageCode) {
		this.type = type;
		isModified = false;
		this.imageCode = imageCode;
		switch(type){
		case GO_LEFT:
			speedX = DEFAULT_SPEED_LEFT;
			speedY = 0;
			rect = new Rectangle(x, y, DEFAULT_WIDTH_L, DEFAULT_HEIGHT_L);
			colliBound = new Rectangle(x-10, y, DEFAULT_WIDTH_L+20, DEFAULT_HEIGHT_L);
			break;
		case GO_RIGHT:
			speedX = DEFAULT_SPEED_RIGHT;
			speedY = 0;
			rect = new Rectangle(x, y, DEFAULT_WIDTH_L, DEFAULT_HEIGHT_L);
			colliBound = new Rectangle(x-10, y, DEFAULT_WIDTH_L+20, DEFAULT_HEIGHT_L);
			break;
		case GO_UP:
			speedX = 0;
			speedY = DEFAULT_SPEED_UP;
			rect = new Rectangle(x, y, DEFAULT_WIDTH_P, DEFAULT_HEIGHT_P);
			colliBound = new Rectangle(x, y-10, DEFAULT_WIDTH_P, DEFAULT_HEIGHT_P+20);
			break;
		case GO_DOWN:
			speedX = 0;
			speedY = DEFAULT_SPEED_DOWN;
			rect = new Rectangle(x, y, DEFAULT_WIDTH_P, DEFAULT_HEIGHT_P);
			colliBound = new Rectangle(x, y-10, DEFAULT_WIDTH_P, DEFAULT_HEIGHT_P+20);
			break;
		default: break;
		}
	}