Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ in xcode (Mac) help //This is header part of C++ #include\"brickGame.h\" #in

ID: 3837961 • Letter: C

Question

C++ in xcode (Mac) help

//This is header part of C++ #include"brickGame.h" #include #include //Created a nethod called BrickBreakingGame void BrickBreakingGame() { for(int m=0, q=4, s=410; m 470) {//Implemented variables q=4; s-=35; } b[m].q=q; b[m].s=s; b[m].w=60; b[m].h=20; b[m].alive=true; } block.myx=300; block.myy=0; block.width=80; block.height=20; block.lft=false; block.rgt=false; ball.ballx=300; ball.bally=200; ball.ballwh=30; ball.velx=0.35; ball.vely=0.35; red1=0.96; green1=0.8; blue1=0.69; red2=0.6; green2=0.8; blue2=0.196078; ball.red=0.65; ball.green=0.49; ball.blue=0.24; block.red=0.137255; block.green=0.556863; block.blue=0.419608; } bool check_collision (float Ax, float Ay, float Aw, float Ah, float Bx, float By, float Bw, float Bh)//Function for checking collision { if (Ay+Ah By+Bh) return false; else if (Ax+Aw Bx+Bw) return false;

Explanation / Answer

Actually, there is nothing wrong with your code. The only thing is, you need to create a .h file which you didn't pulled in here.

And without that bringGame.h file, you couldn't run this code error-free. So, better you get that file, or just give proper description on what exactly that file does, so that we could develop that file afresh for you....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote