Energy, metal, science, and food are all earned by planets. The amount varies based on the planet type, planet bonus, planetary improvements, and number of cities. Credits are earned through missions or by trading resources. If you play as Suzanne Fielding, you automatically earn credits every turn.