I have finished my project for the final presentation of it today. Changes i have made to it since the last version include adding color, moving the edges off screen, adding sound to collisions, removing the possibility to move the bottom blocks with your mouse and adding a top layer of blocks which can be moved with the mouse.
Adding sound was not difficult but I had to redo the code a couple of times until I got the code working as I wanted. One problem I had was defining the sounds in the right place. Also at one point when I was first testing the sound I had the sounds sharing a name with another variable which cause a whole lot of problems which would not let the program play. After identifying the problems it was easy enough to fix.
One interesting addition were the blocks along the to that can be moved around the screen. While playing around with the code and trying to make each note block and individual object which could be have methods called on it I deleted the original code for the blocks. When I decided to base the sound played off the position of the ball I no longer needed the blocks as individual objects so copied the code from the previous version to this version, which still had the blocks as movable objects. After I decided the screen looked a little bland so added the top blocks. While testing the program I notice that the block could still be moved so after setting the bottom ones to non movable objects I left the top row as movable as I believe it made it more interesting.
(this space is reserved for the sketch which did not upload properly to Open Processing.)
One of the main thoughts I have for changing the program is to make the sound based on the position of the blocks instead of the ball and changing octave compared to how high the block is off the ground. I do not believe this would be hard to code, but to make all the sound files would take some time. Also I find the sound gets annoying after awhile, so I am considering trying to find better sounds.
No comments:
Post a Comment