For this part we have just placed the image in the file and provide the name of the image that will be used in the application. Once the image has been loaded we used the chromakey effect in order to get rid of the green colours around the picture. Once we used the chromakey we took the effect picture and converted it into a bitmap with the function that we found online that takes the provided effect and size of it and then it converts it to a bitmap. Then the bitmap gets drawn. For the audio playing we have used the online tutorial provided to us in class.
Develop procedural animation sequence
For this part we have created a function that increases x and y values randomly and therefore draws the image in a random direction, which makes it appear as if its floating on the screen, we implemented a method that changes the objects random movement every 5 seconds. Once a collision occurs between an object and another object or a “wall” the object reflects in an opposite direction. We have also implemented a head rotation every 3 seconds a head either rotates left right or it does not rotate at all. How we did this is, we took the object and rotated it’s angle by 90 degrees in a random direction making the object move in a different direction. For increasing the size of the objects by 30% we have implemented a scale effect found on msdn, once the application is started and 10 seconds passed by, the picture will either decreases or increase by 30% using the scale effect on the object.