We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello all,
I am making a Space Invaders type game and am having a little trouble with getting the writing working correctly.
You can download my full code from Dropbox by clicking here.
I have the game set to end once you've hit only two blocks for ease of testing. I've also set it to write to a different named file until I get the wrinkles ironed out.
As you will see from the code, it writes to the file when either gameOver or gameWon = true (when you win or are killed [not a possibility just yet]). It does seem to do so, however, it seems to add approx. 300 scores to the file each time, and I have no idea why.
All help is appreciated!
//Devon