You guessed right, the goal was in fact to survive as long as you can.
As for the allies and enemies let’s just say I might not have fine tuned and tested the parameters for their movement and attacks enough and they ended up behaving a bit weirdly. Didn’t really prioritise fixing that as I had limited time and it was somewhat still playable but I was aware of it.