youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Level 4: NPCs all spawn in one place -> lag #85

Closed holke closed 4 years ago

holke commented 4 years ago

As is see this, currently the dancing NPCs in level 4 all spawn in a single spot, followed by an NPC explosion where they are distributed across the circle.

  1. This causes some lag in my browser since a lot of collisions have to be computed.
  2. Sometimes after the explosion almost all NPCs are infected, sometimes only one or two are. I think there is too much randomness here.

I suppose to spawn the NPCs more distributed across the circle. And then have a certain chance for each NPC to spawn infected or not.