Sunday, 1 May 2011

Development-Transformation

I have created a different way for how the snake reacts in relation to the mouse as the object travels with a curve in the direction where you click the mouse the snake will move in a curved line towards the spot that the mouse is clicked.

THIS IS THE CODE





THEN...
I have developed the code with a simple trick that gives the snake a fading effect so after a certain number of circles have been drawn the background will fade back to normal.
ALSO...
I have added anther element into the equation as with a little help from our class rep i have managed to figure out how the snake can move by itself. It was a huge task for me to complete and i feel glad to have achieved this because it just has that extra element to it, which makes the code look good. Which i am still working on.

No comments:

Post a Comment