Skip to content

nelson888/openGL-sqash-simulation

Repository files navigation

openGL sqash simulation

This openGL project displays a simulation of the squash. It was a group project realized at my school

Getting Started

These instructions will make you run the project.

Prerequisites

You need to be on a Windows environment and have Code::Blocks installed

Running

Open the project by opening 'Projet_Support_CodeBlocks.cbp' in Code::Blocks, modify the value of variables SCREEN_WIDTH and SCREEN_HEIGHT to the dimensions of you computer screen and then run the project with the run button.

Controls

You can move the racket by mooving the mouse on the screen. Right-click to start the game.

  • left/right arrow - rotate the camera from the center
  • up/down arrow - move the camera forward backward
  • maitining space + up/down arrow - rotate along the Y axis from the center
  • maintain left click - charge the racket to apply a greater force to the ball on the next collision
  • right click - cancel the charge
  • 'd': apply a random impulse on the ball
  • 'f' - (un)freeze time
  • 'g'- slow down time
  • 'h' - speed up time

Screenshots

alt text alt text alt text alt text

Built With

  • OpenGL
  • SDL

About

An openGL simulation of squash

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages