Giter Site home page Giter Site logo

csl290's Introduction

CSL290

COP 290 - Assignment 1 Screensaver of N balls Abhishek Gupta Akshit Kansra 2016CSJ0012 2016CSJ0001

Our main code is in 2016CSJ0001_2016CSJ0012 folder in MASTER BRANCH

1 Implementation

In this app, we are implementing a ’3-D Screensaver’ consisting of N balls. In the app, you can change the velocities of balls, move in front and back, enable gravity, and increase the number of balls. The software required for running the app are: • g++ • Open-GL Libraries(Free-glut) • p-threads library on C++

2

How to Use 2.1 Start the app In order to run the Screensaver for first time, type the command make execute num threads=n in Linux terminal after changing to project directory, where n * denotes the number of balls.

  • The maximum number of balls allowed is 30 If you want to execute it again, first remove execute and compile files from the project, using rm execute compile and again run make execute num thread=n. 2.2 Controls During execution, various parameters can be controlled with the help of Key- board Buttons. These include: • ↑ and ↓ Keys – To cycle through the balls selected for controls. Initially no ball is selected. The selected ball turns white in colour. • ? key – To clear the selection of balls. 1• ← and → keys – To change the velocity of selected ball. ←key for in- creasing and → key for decreasing velocity. • w and s – To move front and back in box, i.e, in the Z direction. • g -To enable gravity in the ball. Each ball will then experience an accel- eration in downward direction. • + – Inorder to increase the count of balls currently present on the screen. The count can only be increased till 30. • Space key – To pause the app. The balls and moving terrain will be paused. Again pressing Space key will start the app again. The app will open in Fullscreen. Pressing Esc button will exit the mode and return to windowed mode.

csl290's People

Contributors

terminator1903 avatar abhi1607iit avatar

Watchers

James Cloos avatar

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.