Make screen shake only happen on score.
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user