An RTOS based game running on a PIC32 microcontroller.
One of the projects in my RTOS class involved making games for an embedded device. The first part of the lab was to fix a simple pong game that had small issues such as the ball sometimes going through the paddle or not keeping score. The second part of the lab was to create our one game. My partner and I chose to create a classic space shooter game.
The game was divided into three RTOS tasks. The first task was for the enemy ship to draw itself coming down the screen and update its position variable. The second task was for drawing the player’s ship and checking whether it hit the enemy ship as it was flying down. The final task was to draw the shot from the player’s ship. The shot would redraw itself moving up the screen and check whether it hit the enemy ship.