Skip to main content
9 events
when toggle format what by license comment
Sep 4, 2015 at 8:30 comment added ChrisG Just glad I could help! Keep going you are really close! :)
Sep 4, 2015 at 8:20 comment added Mearex Thank you very very very much. I finally understand what is going on. You are like hero!
Sep 4, 2015 at 8:19 vote accept Mearex
Sep 4, 2015 at 8:06 comment added ChrisG check my edit above
Sep 4, 2015 at 8:06 history edited ChrisG CC BY-SA 3.0
added 1540 characters in body
Sep 4, 2015 at 7:49 comment added Mearex I updated my code. This way it does not give me a segmentation fault but ball doesn't care bricks..
Sep 3, 2015 at 19:32 comment added ChrisG Hmmm. I don't get exactly what you mean. Could you update your code in your question to reflect the present state?
Sep 3, 2015 at 19:08 comment added Mearex I tried your way. I added one if loop and tried this way. And this give me again same error. but when i add if (collision == paddle) { velocityY = -velocityY; } this codes instead of strcmp it worked! But I am taking this segmentation error again when ball and brick touched. Same error. Can i solve another way? I tried do not use strcmp command but this way ball didnt bounce off bricks that I dont understand why. What is the difference paddle and bricks? And thanks for misconceptions!
Sep 3, 2015 at 13:01 history answered ChrisG CC BY-SA 3.0