Skip to content

Conversation

DaPandamonium
Copy link
Contributor

@DaPandamonium DaPandamonium commented Oct 30, 2024

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.

#  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
Copy link
Collaborator

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 intelagense merged commit 3ba6dfd into codedex-io:main Nov 1, 2024
@intelagense intelagense added the hacktoberfest-accepted https://hacktoberfest.com/ label Nov 1, 2024
@intelagense
Copy link
Collaborator

Note: Related to #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted https://hacktoberfest.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants