Question:
____
Spoiled has a number of meanings, and one of them is ruined. If you said somebody spoiled your fun, it would convey the same meaning as saying somebody ruined your fun.