No, flirting isn't the only way to get an ending. That's just a fun interaction I put in the game. For the most part, you just have to endure attacks, and the act options (other than glasses) are mostly for different interactions that don't completely change the ending.