mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 12:40:12 +01:00
Right side winning
This commit is contained in:
parent
ecec83bea2
commit
72ea50db30
@ -54,7 +54,8 @@ public:
|
||||
} else if (screenEdgeVertical) {
|
||||
vec2d->bump(BumpType::WALL, PaddleDirection::NONE);
|
||||
} else if (scoreSide.has_value()) {
|
||||
score->incrementScore(scoreSide.value());
|
||||
// Invert side
|
||||
score->incrementScore(scoreSide.value() == Side::LEFT ? Side::RIGHT : Side::LEFT);
|
||||
resetPosition();
|
||||
}
|
||||
if (paddleSide.has_value()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user