mirror of
https://github.com/lov3b/Pong.git
synced 2025-06-27 23:50:18 +02:00
Right side winning
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user