Astunut (GUI-based Kivy app using Python)
- Lim Ze Li
- Jun 8, 2020
- 3 min read
Updated: Jun 9, 2020
This is a therapeutic game that I coded alongside with an amazing coder, Joel, which aims to help users relax and immerse themselves in our astronaut-themed game as they venture into "space". I used Python and Kivy language to code the game.
The code of the game was uploaded onto GitHub, click here.
My Journey
Initially, I planned for the game to be a musical themed game where the astronaut attempts to collect static musical notes(in the form of stars) in the sky. Each time he captures one, a musical note will play. By the end of the level, all the musical notes will shoot back up into the sky and play a beautiful song for the player. However, after playing around with the codes, I discovered that it was more exciting to have the stars run around frantically and avoid being captured by the hook of the astronaut. To make things more challenging, obstacles such as blackholes and annoying creatures are introduced to prevent the astronaut player to capture the stars. We took about 2 weeks to learn about Kivy and to code this game!
Introduction to ASTUNUT Game
The Astunut Game is a GUI-based Kivy app using Python. This game is about a lonely astronaut who loves music and is on a mission to collect the musical notes of the galaxy which are stars. However, as the level advances, dangerous blackholes appear which will harm his life when it is being shot. Beware of cute yet annoying creatures of space which will try and disturb the astronaut! Help the astronaut to finish his mission and bring him back home!
A video demonstration of the game, enjoy!
How to play the game
To view instructions, click on compass. To go to the levels page, click start. Click on one of the 3 stars to access your desired level. Player Control keys: ‘A’ to move to the left, ‘D’ to move to the right, ‘W’ to jump up and ‘spacebar’ to shoot hook To win (finish the mission), you have to clear all three levels with increasing difficulty. ** The number of stars and obstacles increases according to the level number. ** To advance to the next level: Eliminate all the running cheeky stars by shooting it with your hook. Then, move your player to the portal that will appear to advance to the next level. The astronaut has three lives. Each blackhole shot will deduct a life from the player. If three blackholes are shot in the level, player loses and will be asked to try again. Click on the replay button to try again! At the 3rd level, an annoying yet adorable creature will attempt to push you if you are in the way. When the creature is in contact with the player, you can command it to change its direction by pressing either ‘A’ or ‘D’ for a few seconds to push it back in the opposite direction. OR, you can press ‘W’ to jump over it! Try pressing ‘W’ + ‘A’ or ‘D’ to annoy the creature and cause it to change its direction frantically! This animal can enter from both sides of the window. At the winning page, click on the UFO to return to home page.


Food for thoughts
The 2 weeks of intense learning journey was very fruitful and I'm glad I was able to apply what i learnt and helped others :) The more we coded, the more excited we got when exploring other possible creative themes using similar codes! This creation allowed me to step out of my comfort zone into the coding world and look at games from a different perspective. I've found a new respect for game coders because coding games requires alot of patience, planning and creativity! The next time I code a game again, I'll make sure to pay more attention to the graphics which will enhance the overall user experience :)
I would like to take this opportunity to thank my partner, Joel, for his constant guidance and for creating this lovely game with me!
Comments