Don't play basketball. If you do, and it's not professionally, quit before you're 30 at least. You'll lessen the wear and tear and lessen your risk for catastrophic knee injury.
ACL and meniscus tears got my knee messed up

.
We're the same person.
Depressing as hell but I quit basketball at 28 to preserve my knees. ACL and meniscus tears on the right (18 playing college football) and meniscus tear on the left (21 playing pickup basketball) left them devastated. By 28 I was feeling it 1-2 days later every time I played. If I had kept playing at that point I'd probably be gearing up for a knee replacement right now.
1. Don't play basketball. Probably not football, soccer, or any serious running either.
2. Lose weight. Eat healthy.
3. Do low-weight leg workouts that emphasize balance. I do one-legged squats, single-leg bent-over rows, lunges, slow half-squats, and step-ups, all with minimal weight. Feel like my knees are really strong and I have a ton of muscle playing backup for the ligaments if I do anything wrong.
4. I don't know anything about collagen supplements but it's worth looking into