How did novels promote the colonialism?

Novels contributed to colonialism by making the readers feel that they were a part of a superior community of fellow colonists, e.g. the hero of Daniel Defoe’s Robinson Crusoe is an adventurer and a slave trader. Shipwrecked on an island, he hates the coloured people because he considers them inferior creatures not as human beings equal to him.
The colonisers were always depicted as heroic and honourable—confronting native people, strange surrounding, adapting to native life as well as changing it, colonising new territories and developing nations there.