First, a vital disclaimer: This is not an official licensed game. In the late 90s, a group of indie developers (often credited anonymously as "Torpedo Entertainment") released a parody point-and-click adventure game on Newgrounds. The premise was simple: Guide Dirk Diggler through three scenes from the movie:
Use the search bar on Archive.org to find "Boogie Nights." boogie nights internet archive install