GithubHelp home page GithubHelp logo

2dgame's Introduction

2D Game Projectile in Opengl(GLFW)

How to compile:

Run the command make in terminal.

How to run the game:

Run the command ./game on terminal.

Rules of the game:

  • Basic aim of the game is to collect golden balls to increase your score.
  • You have a total of 8 lives (balls) to complete the game.
  • The obstacles are in the form of boxes and circles which stop the cannon ball from reaching the coins.

Controls :

The user can play either by mouse or keyboard.

Keyboard Controls
KEY ACTION
r Reload
a Tilt the cannon up
b Tilt the cannon down
f Increase the speed
s Decrease the speed
space Release the Ball
esc or q Quit
up arrow Zoom in
down arrow Zoom out
left arrow Pan left
right arrow Pan right

#####Mouse Controls

  • The position where the user clicks is used to decide the direction and speed of the shot.
  • Scroll up to Zoom in.
  • Scroll down to Zoom out.
  • Press Left Mouse Button to fire the ball from the cannon.
  • Press the Right Mouse Button and then move the mouse in the direction(left/right) you want to Pan.

Additional Features:

  • Red blocks are immovable blocks.
  • Red balls act as movable obstacles i.e when hit, they start to move.
  • Pink blocks are removable blocks i.e. if you touch them once, they'll dissapear.
  • Golden balls are the scoring objects of the game which can be collected by the player.

2dgame's People

Contributors

dhruvkhattar avatar

Watchers

 avatar  avatar

2dgame's Issues

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.