It is best a fixed regulator IC that high quality than 78xx series IC. It full 1A current output and not heat. Learn it more!
This is a DC to DC Buck converter working principle. We often use it as a step down DC to DC converter circuit. Because it is a switching mode power supply.
Can we build the switching dc power supply circuit with 2 transistor? This may be a good choice for you.