This project is a simple simulation that exaggerates how a star changes colour as it moves toward and away from an observer.
When an object moves away from us, the light is shifted to the red end of the spectrum, as its wavelengths get longer. If an object moves closer, the light moves to the blue end of the spectrum, as its wavelengths get shorter. - See more at: space.com
Install the input-box dependency for this Phaser project
npm install
Open terminal and navigate to the root folder where the index.html is located. Then start a local server to view the project.
python -m SimpleHTTPServer 8000
Then open a browser and type localhost:8000 in the URL.