This tutorial explains how to add a score to your app that goes up based on a timer.
I got a request today for a tutorial explaining how to have a score that goes up by X points every second that passes; this is the result of that request.
You will notice how incredibly simple it is once you know how – main.lua requires all needed code, while the project folder also contains score.lua and PNGs for numbers 0 to 9, a score background and a space.
Under no circumstances may you reuse the images in this project. (They’re mine, so please respect that – simply replace them with your own.)
Enjoy! I hope this helps you.
PS – If you would like to expand your understanding of the score method that I am using, this score tutorial should help.