There are only three waves if I recall, they are triggered as you build more structures.
I didnt have time to implement infinite waves during the jam and never bothered updating later, sorry.