Play state is not working
Closed this issue · 6 comments
enemy manger is not spawning enemy in single player.
EnemyManager is broken. The way it's handled now in Play and needs to be rethought/refactored. Kevin, Rob and I were just sick of dealing with it today, I'll look at it again tomorrow.
Still not working. Looking at it now.
Was a timing issue with the unpausing of enemyManager in Play. Should be fixed now ( I tested up to wave 10).
I think the problem might be in the threading logic in NetworkManager, as the spawning works intermittently for me in both single and multiplayer (I closed this issue when it worked the first 5 times in a row after making some changes) -- what happens when we encounter a WriteLock with that Mutex? Does it wait, and write it afterward, or does it just not write it? I am currently refactoring to modularize some of this code. It is on the 'Experimental' branch, if you want to check it out.
If the mutex is locked with the writeLock, and another writeLock attempts to lock, the other writeLock will block that thread until it is able to lock. Try the newest commit from me, I think I managed to fix it.