Gavin Wai Assignment 3 README Instructions "Super Birds" This is a simple game. Aim at birds and shoot them down. If the birds come up to your face, you will lose 1/10 of your energy. After 10 birds hit you, game is over. There are three levels to the game. First level is just checkerborad. Second level has trees that blocks vision on the back, making it more diffult. Third level is the boss with all the birds flying out much faster. Enjoy. Special Features I used: 1) Implemented the mousebutton function- mousebutton() - To find where the mouse is pointing at in DCS. 2) OCS to DCS Conversion- mousebutton() - Converted coordinates in OCS (the bird) to DCS (the cursor) to calcaulate whether the cursor hits where the bird is. - This required me to use the get function to get the ModelView and Projection matrix and multiply each point in OCS by that to convert to DCS. 3) Cursor- main() Changed Cursor from pointer to cross-chair. 4) Lighting/Illumination- lightinit() - Ambient, Diffuse, Specular Lighting. - Changes to night vision in level 3. This has less Ambient and more Diffuse and Specular components to similulate a "night vision". 5) Random Position- movebird() - The position of the birds follow an approximate path hard coded into the computer. - a small random number is added/subtrated every time a bird is hit to generate a randomness. 6) Texture Mapping - checkerboard as the floor the birds jump on top of 7) Text on Screen - Prints out the words "Game Over" on screen 8) Cursor - Changed cursor to one appropriate for aiming. Although Unix version of that cursor is much smaller than that in Windows. Special Attempts: 1) Right now, you do not have to place cursor exactly on the bird to get a hit. - The bird is made as if there's a sphere with centre in the main body of the bird. However, you could click areas around the bird to get a hit. - I also made it so that the area of the target points is larger as the bird gets closer. - for example in function mousebutton() there are RAD1 = 0.12 equal to when BIRDZ is less than -20.