diff --git a/src/entity_opponent.odin b/src/entity_opponent.odin index 00829f6..d7b2bb5 100644 --- a/src/entity_opponent.odin +++ b/src/entity_opponent.odin @@ -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 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 } } else {