The last ingredient to meet our requirements is high-score tracking. We'll need to pass the final scores from the finished game, collect initials (in true arcade fashion) for new high scores, and maintain the database of saved scores.
enterInitials.lua scene file from the
version 4 subfolder of the project pack into your project directory. This scene is fairly straightforward and adds the pop-up screen that will collect players' initials when they reach a new high score.
This section uses the
sqlite3 library included with Corona to simplify managing score records. While we'll spend some time discussing the intent of the SQL statements included, a detailed discussion of SQL syntax is thoroughly outside the ...