DH had a similar encounter back in the mid 70's. He went camping in Algonquin Park (huge Ontario Provincial Park) with some high school friends. They sat around the campfire with their cooler (which contained food & adult beverages) one evening and somebody forgot to lock the cooler away in the truck before retiring for the night. In the middle of the night DH was awakened by the weird grunting-moaning noises his buddy Tom was making. Thinking he was going to be sick DH shone his flashlight on Tom to see what was wrong. DH could see the side of the tent caved in on top of Tom almost covering him. DH yelled to the other guys thinking one of them had tripped on a tent peg on their way to the bathroom and fallen on the tent & Tom. He grabbed Tom's arm to pull him out from under the lump. The guys in the other tent heard the yelling and opened their tent up to shine their flashlight over to see what was going on. They were horrified to see a big black bear sitting on the side of DH & Tom's tent with the cooler beside it and eating their eggs right out of the carton. The guys in the other tent started yelling and ran to one of the guys' truck, climbed in, turned on the headlights and start honking the horn. The bear got up right away, ate more food out of the cooler, and eventually moved off. Just as the bear was walking down the path the Park Ranger drove up to tell the guys to be quiet. They told him what had happened and he warned them to make sure to lock up all their remaining food. Tom refused to sleep in the tent for the rest of the weekend and instead slept in the back seat of his car!
A few years later, the summer after we got married, we went camping at the same campground with 2 of those guys and their now wives and they told us that story while sitting around the fire on the first night. The story could have had a very tragic ending instead of being sort of funny. I was so thankful that we had taken DH's parents converted school bus camper and I didn't need to worry about a night time visitor sitting on the side of our tent!