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