When the game starts then the score adds 1 every half a second at the top right of the sceen…so every half a second it gives a plus 1…
You need a table that holds your previous high scores. When the game is over, loop over the table to see if the current score is greater than one of the high scores. Insert the new score in the table using table.insert(), table.remove() the last record if it’s over the maximum number you want to keep. Then you will need to save the table out to your apps system.DocumentsDirectory and then load it back in when your app restarts.
Rob
You need a table that holds your previous high scores. When the game is over, loop over the table to see if the current score is greater than one of the high scores. Insert the new score in the table using table.insert(), table.remove() the last record if it’s over the maximum number you want to keep. Then you will need to save the table out to your apps system.DocumentsDirectory and then load it back in when your app restarts.
Rob