i made it as a beginner to week for but now i seriously i am lost with breakout.
Where it says todo for the paddle i put in,
GRect initPaddle(GWindow window)
{
GRect paddle= newGRect(WIDTH/2-paddlew/2 ,HEIGHT-paddleh,paddlew,paddleh);
setColor(paddle,ORANGE);
add(window, paddle);
return paddle;
return NULL;
}
If i just return paddle, the paddle is not shown at all.
And setColor does not work either, i just get error: use of undeclared identifier 'ORANGE' setColor(paddle,ORANGE);
i really wanna not give up on that course but to me that problems is just such a jump from the previous stuff.
like the recommendation :Finallz instatiate your paddle with newGRect.. i have no idea what that means ? maybe call newGRect somewhere ?
Also i should return "the GRect".. which i thought can only mean return what i called paddle.
Can anybody give me some ideas to it so i can keep going please :(