To accomplish this animation we use the Simple DirectMedia Layer, SDL, to generate a red star onto a blue sky background. We modulate the update of the animation by adjusting the position of the red star every 17 milliseconds, based on the SDL game clock. Thus, we update the red star 60 times a second in a smooth fashion.
Unfortunately, the animation does not use an OO approach, so the animation is not easy to extend to multiple objects animated on the screen. An excellent exercise would be to convert this procedural approach to use an class to represent objects and then instantiate the class for each object that we want to animate onto the screen.