I used to play this game in grade school. You were some kid in a school at night time.
You walked around with a flash light and went into class rooms and "battled" evil clowns.
I think that the way you battled them was either with math problems or trivia questions.
It was a 2d scroller. I think you wore a hat and had big shoes.