To answer your question: it's not endless. There are 14 random attacks which you need to survive to complete the game.
Originally, I wanted to make the game so the player fought back, but i later dropped it so I had more time to finish what I already had.
I'm glad you enjoyed the game and thanks for the feedback :D