Skip to content

Conversation

@dylanmccall
Copy link
Contributor

Instead of SimpleScoring providing a left and right score, change it to keep track of a single score, and show a single label. In the pong_game scene, we add two nodes: one for the left player, one for the right player.

if _score_label:
return

_score_label = Label.new()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just make this extend Label instead of having a child label?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played with that :) My reason here is I felt it's a feature that SimpleScoring provides a simple interface in the editor: no label properties, no extra Control-related handles in the canvas. But with that in mind, I created #249 to add a block for setting a label's text.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that's fair. We can always change that later if we want.

@dylanmccall dylanmccall force-pushed the simpler-scoring branch 3 times, most recently from bbc8082 to ea8b37a Compare October 10, 2024 07:46
Instead of SimpleScoring providing a left and right score, change it to
keep track of a single score, and show a single label. In the pong_game
scene, we add two nodes: one for the left player, one for the right
player.
@dbnicholson dbnicholson merged commit a45e51c into main Oct 10, 2024
3 checks passed
@dbnicholson dbnicholson deleted the simpler-scoring branch October 10, 2024 07:50
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.

3 participants