Todo to add difficulty levels
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user