There are two ways I know of.
One is to superimpose an AC digital signal on the DC supply. The signal is just a squarewave which is AC coupled on to the power supply rails. Manchester coding is used to ensure there's no DC content so it can pass through AC coupling capacitors. The disadvantage is the supply's impedance would need to be high at the AC signal's frequency which means putting chokes on the power supply rails and the devices running off it.
Another is to use a squarewave AC signal for the whole power rail and rectify it before any of the devices. If the duty cycle is kept near 100% (don't forget a +/-12V square wave has the same RMS voltage as 12VDC), Again, Manchester coding could be used to make sure there's no DC content in the signal. The disadvantage is power will be lost in the diode drops at the rectifiers.
What ever distribution system is used, each car would have to be given a binary code so it knows you're talking to it an the controllers would have to be polled sequentially as it's not possible to transmit at the same time.
If you're only using two cars, why torture yourself with microcontrollers? Phase contol has got to be the easiest way to do it.
How much power so the cars use?
Just make sure the transformer is much larger than you need, double the power rating of both of the cars should do.
Attached is an example which might need a bit of tweaking but should work.