GithubHelp home page GithubHelp logo

d1mic / shootit Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 251 KB

A simple 3D basketball game developed using OpenGl and Glut library written in C.

Makefile 1.78% C 98.22%
glut c opengl basketball shoot 3d game

shootit's Introduction

๐Ÿ€ RG049-shootit

ShootIT is a basketball game developed using OpenGl and Glut library written in C.

ShootIt is developed as a project for Computer graphics course at the Faculty of Mathematics in Belgrade, Serbia. logo

๐Ÿ’ป Getting Started

These instructions will get you a copy of the game up and running on your local machine. This version is mainly tested on Ubuntu.

Prerequisites

What things you need to install the software and how to install them

Install freeglut

$ apt-get install freeglut3-dev

Install and run the game

How to install and run the game

  1. Download the repository
  2. Go to src folder and run
$ make
$ ./shootit

๐ŸŽฎ Gameplay

Ball is generated randomly on the field, and the time on the semaphore begins. A player has 90 seconds to score as many points as he can. Angle and strength shot can be altered using keyboard. As soon as the ball hits the floor a new one is generated. Score is printed on the scoreboard. Ball that is generated can be regular basketball or a bowling ball. Naturally the bowling ball is heavier and hence needs a greater shot power to score. Changing the angle and strength of the shot can be seen as small balls that represent in what direction is the ball heading. If hard mode is activated this shot assistance is not visible. Player can see the field from all angles and change the lighting.

๐Ÿ•น๏ธ Controls

Key Description
a s Changing the camera location
w a Changing the angle of the shot
j k Increasing/Decreasing the strength of the shot
l Turn on/off head lighting
h Turn on/off hard mode
space Shoot the ball
ESC Exit

gameplay

๐Ÿ”ง Built using

๐ŸŽ“ Author

๐Ÿ“– License

This project is licensed under the MIT License - see the LICENSE.md file for details

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.