Giter Club home page Giter Club logo

openglgame's Introduction

OpenglGame

This is a simple game implemented with OpenGL. In the game, the scene is made up of several boxes placed in different height. Besides, there are several breads floating on different places of the boxes. The player, in the first-person-perspective, need to move, jump and look around, to look for the breads and eat them!

1. Introduction

1.1 Result

  • Play

    Image text

  • First-Person-Perspective of the scene

    Image text

  • Third-Person-Perspective of the scene

    Image text

1.2 Control

  • W/A/S/D on keyboard to move.
  • Space on keyboard to jump.
  • Click the left button of mouse and drag for perspective roaming.

2. Coding Environment & 3rd Party Library

  • Win10(x86) + VS2015
  • C++
  • freeglut
  • GLEW
  • Assimp
  • DevIL
  • SOIL

3. Functionalities

  • Basic functionalities

    • Camera Roaming
    • Texture Mapping
    • Simple Lighting
    • Sky Box
    • Deep Test
    • Model Managment
  • Additional features

    • Scene switching
    • Gravity simulation & Collision detection
    • Stencil Test
    • Display Text (En/Cn)
    • Complex Texture (Bumpmap)
    • Particle System & Explosion Effect

4. Additional Features' Detail

  1. Scene switching: When starting the program, we will enter the home page, containing the game rules and a Start button. Clicking the button, and we will enter the main game scene. (You can see the effect from the GIF above)

  2. Gravity simulation & Collision detection: see the code explanation in Chinese version: http://blog.csdn.net/qq_33000225/article/details/72861956

    Image text

  3. Stencil Test: We use Stencil Test to draw the edge of the bread.

    Image text

  4. Display Text: We have English and Chinese text on the home page. At the game scene, a string text is placed on the upper left corner of the window to show how many breads the player has eaten. Keeping the text at the fixed position is relavant with the camera roaming.

  5. Complex Texture: We use bumpmap here to make the boxes more stereoscopic.

    Image text

  6. Particle System & Explosion Effect: When the player eats the bread, an explosion effect with several particles will be generate ahead.

    Image text

openglgame's People

Contributors

isvoid avatar ljxcript avatar markmohr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.