pumpkinBattle
A detailed Chinese report for this project
Project Introduction
- This is the final project for my Computer Graphics course in Zhejiang University.
- It's an interesting game designed by C++ and OpenGL. The Player are surrounded by walls in the dark, feeling the fear of Pumpkin Monster approaching. Just run and jump , blow up the walls and kill all Pumpkin Monsters for surviving!
How to play?
- Build up a new VS project and add files from Resources.
- Use the codes in pumpkinBattle to play!
Player Instructions
- Use the space to jump (You can only jump twice at a time) and use WASD to move.
- Use the mouse to control your perspective.
- There are several pumpkin around you when you start the game. Each pumpkin will wander ramdomly, but the closer you near him, the more possibility that he walks to you.
- There's a grenade sign when you get close to the wall. Click down the right button to blow up random pieces of wall.
- After you click down the left button, you can shoot a bullet. Each pumpkin will disapper after being hit 5 times.
- You can not move if caught by the moster. Then please shoot him as quickly as possible and press the enter to reborn.
- Press the P on the keyboard to get a screenshot.
Brief Technology Introduction
- Shadow
- Know the principle of shadow and light
- Control the dynamic light
- Control the real-time shadow according to the light
- Collision
- Use the knowledge of 3D-geometry to describe the collision.
- Implement it in many situations: bullet and pumpkin monsters, explosive and walls, people and bricks...
- Models
- Master the structure of the model
- Import some models from the Internet
- Texture
- Build the texture by programs
- Use the textures from the Internet and attach them on the objects
- Use the skybox
- Others
- Print real-time words on the screen
- Gravity system