gitdefence / game-off-2012

Build networks, destroy bugs
http://www.justinmcgirr.com/gitdefence/master/game/
5 stars 1 forks source link

Clicking on the wrong tower in the tutorial crashes the game #78

Closed crazy2be closed 11 years ago

crazy2be commented 11 years ago

In the tutorial, if you click on the wrong tower during the "making a network" phase (i.e. click on the not highlighted tower to try and begin making your connection), the game freezes up, and won't respond to any input.

yeerkkiller1 commented 11 years ago

Does it crash at a javascript level (so an uncaught exception) or at our game level (the game is in an infinite loop)? I fixed some crashing problems and I can't reproduce this so it may be fixed.

yeerkkiller1 commented 11 years ago

Okay, reproduced and fixed. It was due to a bug in that we don't except mouseup before mousedown (which is wrong, as mouseup can be given any time with no mousedown).