Recitation7 ——Rujun Zhang (Marcela)

I tried use the image I drew last time and I wanted to make a small a simple game. If this image moved across two lines (one of them is on the top; another is at the bottom), then there will be some warning. And people need to move the image from one side to another side. I learned triangle function online and to define the parameters of this function is very difficult, so I tried to adjust several triangles many times. Another function I used is mouse. I used mouseX and mouseY to be very important parameters and then people can use keyboard to control the image. Other functions I used were very normal, but I still thought random is a very interesting function because it will add uncertainty to my project. The exclamation mark will randomly appear in my project to warn player he is out of range.

Leave a Reply