Asking, ‘If there is no God, what is the purpose of life?’ is like asking, ‘If there is no master, whose slave will I be?’ If your purpose of life is to submit as a slave, then your meaning comes from flattering the ego of a person whom you should detest.