Bunny Attack!

By: Eric Sobel



Intro: You stumble through the woods to find yourself staring at two enormous stumps. Before you can fully contemplate the reason for their existence, a glowing red bunny hops out from behind one of the many smaller stumps surrounding you. The bunny starts hopping towards you, and you realize this is no ordinary bunny, it's a demon bunny! Good thing you brought your trusty handgun!




You quickly reach for the gun and BAM!, down goes the bunny. As you lower the gun and quietly think about how cool you just were, out pop two more bunnies! You begin to panic, could this be some kind of personal hell?




Description: Bunny attack is an endless bunny shooting game with a creepy setting. There is no way to win and no way to lose, just bunnies. The bunnies spawn from the stumps located around the map. Every time you kill a bunny, two more bunnies spawn.




Features: I used a combination of texture shading and Blinn-Phong shading for the world, the bunnies, and the bullets. Jumping is implemented using semi-realistic gravity based on Euler integration. Collision detection between the bullets and the bunnies uses simple distance calculation. I used a system similar to particle effects for the bunnies and the bullets, where there is a separate instance for each object to keep track of things like location and direction, and it updates them after each frame. I had the bunnies spawn at the stumps to get psuedo-random spawning without having them accidentally spawn on top of you.




Controls: Mouse to look
                 Left mouse click to shoot
                 'W, A, S, D' to move
                 Spacebar to jump
                 'r' to sprint


Bonus: A glitch in the jumping pattern of the bunnies caused this. I call it the demonic bunny waterfall/snake. The glitches in the image though are a result of the screen capturing software.


Credits: All code was either given from labs and projects or my own. Object files and textures all sourced from the internet.