codedex-io / projects

Codédex Projects 📝
https://www.codedex.io/projects
MIT License
69 stars 45 forks source link

Updated the MDX for the last PR #158 #184

Closed DaPandamonium closed 1 month ago

DaPandamonium commented 1 month ago

Removed continue to allow paddle movement, ball position, and other updates to occur every frame. In the original loop, there was a continue statement after checking for the start event. This statement was causing the loop to skip the remaining code every time it ran, which prevented necessary updates like paddle and ball movement, collision checks, and display refreshes. Removing this continue ensures the game loop runs each frame completely.

intelagense commented 1 month ago

Thanks for the update! This line doesn’t seem to impact the program, since it’s at the end of the containing for loop. The loop will run as expected without it, but we can remove it for added clarity. 👍

intelagense commented 1 month ago

Note: Related to #158