Skip to content

Removed menu function. Changed obstalces.pop() to obstacles.remove()#10

Open
adjenk wants to merge 1 commit into
MaxRohowsky:masterfrom
adjenk:master
Open

Removed menu function. Changed obstalces.pop() to obstacles.remove()#10
adjenk wants to merge 1 commit into
MaxRohowsky:masterfrom
adjenk:master

Conversation

@adjenk

@adjenk adjenk commented Jun 2, 2026

Copy link
Copy Markdown

This PR removes the use of menu() because it caused the game to recursively call main() and stack multiple game loops after each death. The game now restarts cleanly without creating additional loops.

It also fixes the obstacle‑removal bug by replacing obstacles.pop() with obstacles.remove(self), ensuring the correct obstacle is removed when it moves off‑screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant