Ask coding questions

← Back to all posts
Game will randomly crash?
EthanBlesch (8)

I have a game coded in JS on an HTML canvas, and it will sometimes crash, for seemingly no reason, though it seems to be associated with but not strictly limited to if you shoot while the minigun is active.

Answered by CSharpIsGud (1062) [earned 5 cycles]
View Answer
Comments
hotnewtop
CSharpIsGud (1062)
else if( whichPwr === 5){

generateSlowMo(); // generateSlowMo is not defined
isSlomo = true;
}
EthanBlesch (8)

@CSharpIsGud OOOOOhhhhhhhhhhhhh
now i feel stupid,