Code Monkey home page Code Monkey logo

opengl-3d-game's Introduction

Legend of Zelda Opengl 3D Game

This game is based on Legend of Zelda. More details in problem.pdf.

The prime objective is to score as much as possible before the ship runs out of fuel.

[TOC]

Installation


You need to install the development packages of the following libraries:

  1. GLEW

  2. GLFW3

  3. GLM

  4. AO

  5. MPG123

Installing packages

sudo apt install cmake pkg-config
sudo apt install libglew-dev libglfw3-dev libglm-dev
sudo apt install libao-dev libmpg123-dev

Run the code

cd path/to/project
mkdir build
cd build
cmake ..
# Run from here after editing
make
./game

Extra Features


  • Background music on firing fireball
  • Sail movement in the direction wind
  • Score, Health and countdown-timer using seven segment display
  • Speed ,Health and fuel boosters
  • Modular codebase
  • Physics have been followed
  • Boss monster comes after killing small monsters
  • 6 different camera views

World


  1. Ship with Cannon and Sail
  2. Water
  3. Rocks
  4. Monsters
  5. Boss Monsters
  6. Gifts and Boosters

Health Points is displayed on top left of window.

Score is displayed on top right of window.

Countdown timer / Fuel is displayed on middle of window.

Objective is displayed on title bar of window.

Scoring


Collision with rock : Reduces health points by 10.

Collision with monster : Reduces health points by 30

Collision with bossmonster : Reduces health points by 50

Killing with monster: Increases score by 10

Killing with bossmonster: Increases score by 30

Controls


Keyboard Controls:

  • Space - Jump
  • Arrow keys - Movement of the boat
  • C - To move to ortho view
  • V - Change camera views
  • F - Fire fireballs
  • Tower View:
    • S - revolve camera
    • Z/X - change camera y coordinate

Mouse Controls:

  • Mousewheel - Zoom In/Out
  • Helicopter View
    • mouse click and drag - move camera
    • mouse scroll - move camera near/far

License


Music Credits: Eric Matyas (http://www.soundimage.org)

opengl-3d-game's People

Contributors

kunalgarg2100 avatar

Watchers

James Cloos 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.