Thanks for writing yor query.
After reading your post, it seems that you might have got fracture
, the knee cap bone.
You should immediately get yourself examined by an Orthopedic surgeon.
Also get an X-Ray of your Right Knee (AP and Lateral view) done to know the type of injury
on the patella, which can determine the method of management.
If the pieces of fractured bone are close to each other, surgery may not be needed. Casts or splints may be sufficient for healing.
But if the pieces are displaced, surgery may be needed to align the displaced pieces.
You can take pain killer like Ibuprofen
one tablet twice a day after meals along with an antacid
for relief from your symptoms.
But I would suggest that you should get yourself first examined clinically and follow the treatment accordingly.
I hope this is helpful to you.