Make screen shake only happen on score.

This commit is contained in:
2026-10-15 06:56:53 +02:00
parent f9987788bf
commit 1ee4ff920b
2 changed files with 4 additions and 8 deletions
+1
View File
@@ -120,6 +120,7 @@ check_ball_paddle_collision :: proc(ball: ^Entity, paddle: Entity) -> bool {
}
increment_score :: proc(score_side: ^int, max_score: int, player: bool, ball: ^Entity) {
emit_event(.Score_Change)
score_side^ += 1
if score_side^ == max_score {
emit_event(Game_Over_Data{player})