With all the excitement of the 50th Anniversary of the first Moon Landing and the world record attempt Moonhack https://moonhack.com/ , I wanted to experiment with PyGame Zero a little more. So I created my own, very simple, Moon Lander game using Python and PyGame Zero. The lander has to pass through a red rectangle on the surface as it accelerates to the surface. Left and Right keys move it sideways and the up key gives it a boost. When the lander passes through the red rectangle it makes a noise; if it misses (or after it passes through the rectangle) it resets to a new position and starts again. Two images were needed The lander image came from https://www.kissclipart.com/apollo-program-apollo-lunar-module-lander-moon-landing-wgwzny/ shared by Xfanmy. This n eeded to shrunk by about x10 to fit. Surface came from Vector Designed By from Pngtree.com An image from the game, the code and a link to the repository are shown below, please f...
Robots and getting computers to work with the physical world is fun; this blog looks at my own personal experimenting and building in this area.