Starfield

Im trying to code a simple starfield (like the screensaver on Windows 95) and once I accomplish that. I would like to further code it into a Starfox like game. How do I program a starfield (Similar to the one seen in this youtube video) onto Esplora? https://www.youtube.com/watch?v=kaqWfKZavDM

I would like to program it so that you could switch back and forth between joystick and accelerometer controls.