Christian Thompson has a YouTube channel where he clearly explains how to write neat little game-like programs in Python. It reminds me of the fun I had writing programs in BASIC to generate Mandelbrot fractals and cellular automata. He just uploaded a four-part series on how to simulate bouncing balls.