Monday, 2 May 2011

Final hand in for project 2

Over the easter break I made very few adjustments to how the program actually worked. Most of the work that I did on the assignment was to make the code easier to read and commenting the code to make it understandable.

There were two changes I made to the program. The first was originally the sound made was based on the x position of the ball on the screen. I changed this to the x position of the blocks that the ball collided with, as this seemed to make more logical sense.

The other change I made to the code was make it so that when the down key is pressed the ball changed color. When the ball is white it bounces better than when the ball is black. I added this because the white ball makes more interesting sounds when thrown around the screen but if it is bouncing in one place it can take a long time for it to stop moving, which makes an annoying sound. The black ball stops bouncing a lot faster and is not so annoying but can but does not make as interesting sound.

I will try to post it on the blog but I am having problems with uploading it to open processing which is why the reserved space in the last post is still there.

As a final note, which I forgot to put in my code, thanks to Richard Marxer for his fisica libary, it helped me HEAPS!

No comments:

Post a Comment