I've written this code for clarity to help others learn. It is formatted, self-documenting and heavily commented. The logic is implemented several different ways to ease understanding. Within you will learn how all the elements of a game are constructed. Such as timers, stats, button control, touch panel, sprites, backgrounds, manually using array for hit detection, loops etc. Hope this helps!