Giter Site home page Giter Site logo

game_opengl's Introduction

LegendofZelda

This is the code for the game which i have created in opengl.

src director consists of the all the files which i have used to create this game .

How to run the game?

Go to the directory and run the following commands

cd build
cmake ..
make
./zelda

Game controls:

The player is controlled by the arrow keys:

 left key       => Rotate left,
 right key      => Rotate right
 up key         => Move Forward

 space key      => jump
     o          => bombs

 "c key"        => Default view
 "b key"        => Camera in Boat
 "t key"        => Top view 2
 "y key"        => Tower view
 "z key"        => Helicopter view
  "q key"       => quit
  "2 key"       => for moving the cannon down
  "8 key"       => for raising the cannon up 

Score and Lives left are displayed on the title.

Health

There are certain gifts on the sea which when collected will increase the health of the boat.

  • Initially, you are given with health of 50. If you collide with an enemy boat or rocks, you loose health. When the health reaches 0, the GAME IS OVER.

Collision

On collision with rocks and enemy boats, the health of the boat will be decreased.

Gifts

There are barrels floating on the sea with gifts on them which when jumped over would increase the score of the boat.

Boosters

There are some boosters floating on the sea which when collected would give boost to the boat for a couple of seconds.

Fireball

Fireballs can be used to kill the monsters. They are realeased through cannons which is in front of the boat.

Killing monsters

On Killing the monsters through Cannons, the score of the boat is increased and also the monsters leaves a booster(Coins) when it dies which can be collected to boost the speed of the boat.

Boss Monster

On Killing 4 Monsters, a Boss Monster would appear in the sea. To kill the boss monster, the boat should fire atleast 3 fireballs to kill the Boss Monster. When it dies, it leaves a booster and the score of the boat is increased.

Bonus

  • Sounds for various actions are added.
  • Created an Island where the man can move and inside island there is a hidden treassure .

How to Run

Open qt creator and give it cmakelist.txt file then , run the cmake , for running the game just type green arrow button at

bottom left of the screen a pop up window will appear with running game .

game_opengl's People

Contributors

pradeepppc 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.