(NOC) HW6 – Xiaonan Li

Here is the link of my hw6:

https://drive.google.com/open?id=1OADlrDF2xEMzEhg7pOFDvmIH-BuKZnek

https://drive.google.com/open?id=1CM0sOsb0V3rFNNz_2eGo5H6qBsCSLaDJ

 

As it is showed in the picture, the purpose of the user is to move the blue earth around and to collide three other planets away to protect our sun. The earth is fixed on the specific track and it can move along with it with user’s mouse. The collision of the earth and the white planet is through function checkCollision().

Besides, the sun has attraction towards the three white planet, and since it has huge mass, its position barely changes. So simply saying, the earth has to protect sun from keeping coming planets, and the collision between sun and the white planet will result to a failure of the game.

Another fun fact is that I give our sun eyes and he will keep staring at the earth and watch it to check if it is doing a good job.

 

Leave a Reply