With these short examples you can be well on your way to programming an entire 2d video game. I provided short functions, involving timers, from my own 2d animation game Ancient Medieval Zombies to show that the skies the limit to creating a custom game. Learn timers, learn video game programming. Timers play a crucial role in keeping track of time, collision detection, moving/animating characters across screen, keep statistics and even recognizing death! As time goes on, I'll upload more examples into this app, so keep it updated!
*Intermediate programming experience is recommended*