a great deal of work!
the wikipedia article for Ori says that they had a team of 80 people, and it took 4 years to develop, so that is 320 man years of development. Very skilled and experienced programmers, artists, musicians, level designers, writers, etc...
and a lot of testing, and using every tick imaginable to make it work!