The new game engine has been giving me a little trouble. It looks like it stemmed from any variables that were not initialized.
I have gone through and made sure all variables are initialized to 0, so the game should not be crashing anymore.
Specifically, when a jellyfish creature attacks you, it checks if the attack sound is playing. This sound is stored as a variable, so when it checks, if that variable was not initialized to zero, it would not know how to interpret the variable, causing the game to crash.
This was not a problem with the game before, because the old engine seemed to be more forgiving with uninitialized variables. However, this is good, because those errors would have gone unnoticed, and may have led to worse things like memory leaks and such.
The new engine is more strict, but therefor should be more stable.
When I play test, I know where all the enemies are, so they generally don't get much opportunity to attack me :) So that's why I was able to play without setting off the crash.
Hopefully the game will run smoothly now. Thanks for your patience!
Here are another couple of Lovecraft inspired creatures that may work their way into the game some time soon!
