NOC week2: Xiaonan

For this project, I used a simple class to create a series of objects. I meant to  create paper planes but failed to, and it ended up some kind of dart shapes. 

The basic function for this small practice is when press the mouse, there will be several “darts” coming out, flying, and rotating. It was made by a position vector and velocity vector, and at the same time, a rotate function.

  

There are three functions in the class, which are constructor, display and update. Here, display is to draw the dart shapes and update is to make it move. And then in the draw function, I call them in the each round so it can continually generating darts.

Leave a Reply