And solar is just one of many ways of generating electricity. Wind turbines continue to work, as do hydroelectric plants (and on a smaller scale, water wheels). Worst case scenario, you can burn more readily accessible carbon based fuels like wood to make steam to generate power. Vehicles that are dependent on extraction and refinement of petroleum are actually quite limited in comparison.