Todo to add difficulty levels

This commit is contained in:
2026-10-08 07:45:08 +02:00
parent fb7bfd6bf3
commit dda388868c
+1
View File
@@ -27,6 +27,7 @@ update_opponent :: proc(self: ^Entity, ball: Entity, bounds: rl.Rectangle, dt: f
// center of ball - center of paddle gives the target // center of ball - center of paddle gives the target
self.target_y = (ball.pos.y + (ball.size.y / 2)) - (self.size.y / 2) + error_offset self.target_y = (ball.pos.y + (ball.size.y / 2)) - (self.size.y / 2) + error_offset
// TODO: make this and the deadzone change with difficulty
self.reaction_timer = 0.15 self.reaction_timer = 0.15
} }
} else { } else {