Skip to content
/ shootit Public

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

Notifications You must be signed in to change notification settings

d1mic/shootit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🏀 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published