Attached is the start of my Breakout clone, at the moment the ball should just bounce around a couple of times (smoothly) & then quit. But the ball bounces around with varying speeds and with jerky movements, why?
pymatio
0
Light Poster
Recommended Answers
Jump to PostMy first guess would be because of lines 244 to 247 and related lines:
int x; int y; int yVel; int xVel;
These are integers, change them all to double's or float's for a smoother result. Also, make sure any values you add / subtract to these …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.