For gravity coupled to N scalar fields with arbitrary potential V, it is shown that all flat (homogeneous and isotropic) cosmologies correspond to geodesics in an (N+1)-dimensional `extended target space' of Lorentzian signature (1,N), timelike if V>0 and spacelike if V<0. Accelerating cosmologies correspond to timelike geodesics that lie within an `acceleration subcone' of the `lightcone'. Non-flat (k=-1,+1) cosmologies are shown to evolve as projections of geodesic motion in a space of dimension N+2, of signature (1,N+1) for k=-1 and signature (2,N) for k=+1. We illustrate these results for various potentials of current interest, including exponential and inverse power potentials.