Yes, well, it doesn't need to be as dark as Batman. Tony Stark never suffered a childhood trauman like Bruce Wayne did. He was a playboy genius who got a serious reality check about his munitions producing, and decided to use his high-tech for something noble.