Since it is around the end of the dates season in the UAE, I have decided to do this assignment related to that. Upon clicking the down arrow button, you can witness the dates falling from the palm trees in a constant acceleration.
It was quite difficult for me to find a video, so here is a photo of date palm trees instead:
I limited the acceleration to 3 as I did not want it to speed up too fast as it would seem to be unrealistic. Below is the part of code that shows the dates accelerating when the down arrow button is pressed.
if (keyCode === DOWN_ARROW) { dates.acceleration.y = 0.01; dates2.acceleration.y = 0.01; dates3.acceleration.y = 0.01; }
For future improvements, I would allow the user to restart it by clicking the mouse or a button. I also would add different kinds of dates and more of them.