Decompose the movement into movements in x and y direction. Note that the principle of independence does not apply to movements with air resistance! So you have to put vx and vy together again to calculate the new a and from this ax and ay.