there are a LOT of details in a Hansen A-frame engine to work out, I suggest starting with a spark ignition gasoline engine, then proceed to diesel, IMHO, YMMV, yada, yada, yada :) !!!
(for example, you are unlikely to want to cut your own helical gears, so what's available in the small size...