It's straightforward: buy the best cannon you can every time you have enough money, and keep upgrading to overpower each wave.