Can anyone help me fix my game over statement [closed]

OrieteLiz

New Member
Basically here is a snippet of the code I can't seem to end the game when my aliens are dead can anyone help please. I think the main problem is my if statement.Code:\[code\] def gameover(): message = Msg("Game Over") message.update() player.kill() shot.kill() SQL = 'INSERT INTO TblScore(Score, StudentID) VALUES (' + str(score.value) + ', ' + str(8) + ')' Databaseconnector.INSERT(SQL) pygame.quit()\[/code\]\[code\] if aliens <=0 gamewon()\[/code\]rest of the code: http://pastebin.com/fPb88Nu4
 
Back
Top