Coder Social home page Coder Social logo

poolgame's Introduction

/******************************************************************************
 * Author: Arlen Strausman
 * 
 * This is a Pool simulation game written for my computer graphics course.
 * It is built upon a collision detection and animation program 
 * designed by Thomas Kelliher. 
 * 
 * Functions written: createAimer, rackBoard, shoot, rackCue, aim, raisePower,
 * lowerPower, elasiticityUp, elasticityDown, ballSizeUp, ballSizeDown, moveCueUp
 * moveCueDown, moveCueLeft, moveCueRight,
 * 
 * Functions modified: readFile, createCircle, createBoard, display, init, 
 * keyboard, mouse, idle, main
 * 
 * ****************************************************************************


Arlen Strausman's Pool Simulator Game:

===========================================================================================
-------------------------------------------------------------------------------------------
GOAL:
-------------------------------------------------------------------------------------------
- The goal of the game is simple; pocket all balls that are not the cue. 

-------------------------------------------------------------------------------------------
SHOOTING:
-------------------------------------------------------------------------------------------
- Click within the white "aiming circle" to choose the direction of your shot 
  (represented by a small pink "aiming ball". 
- To raise or lower the power of your shot, use the '+' and '-' keys.
- When you are satisfied with your direction and power, hit the space bar to shoot.

-------------------------------------------------------------------------------------------
RE-RACKING:
-------------------------------------------------------------------------------------------
- To rerack the cue, use the 'c' key. To rerack the board, use the 'r' key.

-------------------------------------------------------------------------------------------
BREAKING:
-------------------------------------------------------------------------------------------
- When either the cue ball or all of the balls have been recently racked, you may use 
  the 'w', 'a', 's' and 'd' keys to move the ball to the desired location within the legal 
  breaking area.

-------------------------------------------------------------------------------------------
COOKIES (EXTRA FEATURES):
-------------------------------------------------------------------------------------------
- To raise the size and mass of the ball, use the 'B' key. To lower them, 'b'.
- To raise and lower the elasticity of collision, use the 'E' and 'e' keys, respectively



Built upon skeleton Pool.cpp class provided by Thomas Kelliher (my professor)

poolgame's People

Contributors

voicelessreason avatar

Stargazers

kobley avatar  avatar  avatar Teja Nemana 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.