I asked a question similar to this a while ago with the same game about shooting. @sixbeeps replied with an awesome answer that worked. But after time, the code started not to work(probably because I accidentally moved some stuff around). Anyone know what looks wrong with the shooting code?
Edit: I just noticed that the document.title is not even working. So maybe the whole code is just not running.