Most car engines make power the same way: four strokes of a piston, over and over. Slow one down and watch each step.
One cylinder, cut open. The piston rides up and down, two valves open and shut, and a spark sets off the fuel at just the right moment.
A real engine idles at about 800 turns a minute and has several cylinders taking turns. The timing here is simplified: real valves open a little early and close a little late.
Keep watching