Giter VIP home page Giter VIP logo

fps-trainer's Introduction

FPS-Trainer

In the 5th Semester - Winter Fall 2010, a team who was fascinated by video games in general and FPS games in specific proposed to implement a First Person Shooter target practice game. This idea was inpsired by the infamous Virtua Cop game https://youtu.be/5GVl7t9GYkc. The project was implemented using C++ and Vanilla OpenGL.

Introduction

The game is a simple First-Person Shooter, and consists mainly of one level featured in most games of this genre, which is a practice range. Targets will pop-up in various locations as the player navigates through the level, and the player is required to hit some or all of them. The player only has a fixed number ammount of ammunition and is required to reload when the gun runs low on Ammo. The score is a function of how many targets the user hits in a fixed time interval using the minimum ammount of bullets.

Screenshot of the game

Features

  • First-Person Camera implementation
  • Simple Physics including gravity calculations
  • Md2 Model parser for target characters taken from Counter strike 1.6
  • Detecting whether or not a bullet has hit a target in the 3D map.
  • Using Textures and height maps to draw the map environment.
  • Using Textures to draw the targets and the weapon.
  • Adequate random placement of the targets with respect to the map boundaries.
  • Collision Detection between the player and the map as well as targets
  • A simple game menu state machine, hit marker and Ammo hud display
  • Reacting to Keyboard and mouse events to navigate through the map and shoot

How To

  1. Install the necessary dependencies
sudo apt-get install build-essential freeglut3 freeglut3-dev
  1. Make it
make
  1. Play it!
./FPSTrainer

Controls

  • Jump - Space
  • Duck/Stand up - C
  • Move Forward - W
  • Move Backward - S
  • Move Left - A
  • Move Right - D
  • Reload - R
  • Toggle Menu ESC
  • Fire weapon Left mouse click
  • Look around Mouse

Bugs

Everything here is just student code and a proof of concept. Currently, there are a few bugs with the collision detection system so, you can actually get stuck in the map in some cases. Moreover, there is a stack smashing bug (See gcc flags in the Makefile). In addition, if you resize the window, all the event handlers' calculations become faulty.

Contributors

  • Mohab El-karef
  • Ahmed Mohsen
  • Amr Tj. Wallas
  • Magued George

License

MIT. See LICENSE file for more infomration

fps-trainer's People

Watchers

Mina Nagy Zaki avatar James Cloos avatar Amr Tj. Wallas avatar Kareem Ahmed avatar ElHassan Makled avatar Mohamed Wael Alzayat avatar George avatar

fps-trainer'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.