There are a few small bugs in Battlejack, and a few opportunities for a better user experience. This chapter fixes the bugs and adds some features to make the game flow better.
The first bug you may not have noticed yet: if you click the mouse on the menu screen, the game crashes. This is caused by the main.lua file forwarding any detected mouse press or release to STATE.mousepressed() or STATE.mousereleased() , and finding no corresponding menu.mousepressed() or menu.mousereleased() function .