Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P.75 Ch.3 Issue with score updating on destruction of asteroids #30

Open
Jrbesse opened this issue Oct 15, 2024 · 0 comments
Open

P.75 Ch.3 Issue with score updating on destruction of asteroids #30

Jrbesse opened this issue Oct 15, 2024 · 0 comments

Comments

@Jrbesse
Copy link

Jrbesse commented Oct 15, 2024

I noticed on the errata page to update the score variable in _on_rock_exploded, however this still does not call to the Score in the HUD.
I'm not sure if I missed this in the book, but I was able to fix this by adding
$HUD/MarginContainer/HBoxContainer/ScoreLabel.text = str(score)
after the
score += 10 * size
line in the function.

Greatly enjoying the book, thank you for your time.

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

No branches or pull requests

1 participant