Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

kawoou/cau-oop14-billiards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Four Ball

In this project, we developed a simple simulation of a “four-ball” billiard game. The billiard table as the user sees it consists of a window containing a rectangle table with 2 red balls and 1 yellow and 1 white cue balls, imparting a certain amount of energy to it. On top of that, the program also shows the time remaining for each player to hit the ball and the direction of the cue ball in a green line. By pressing the space bar the screen is changed and the user can select on which part of the ball he/she would like to hit on. Also it shows the power gauge of how strong the user will hit the ball. Once a ball has energy it will start to move, reflecting off of walls, and potentially striking other balls. When a ball strikes another ball some of the energy of the first is given to the second, while the direction of movement of the two balls is changed by the collision. The user can go back to the previous screen by pressing any arrow keys and display the score by pressing onto the tab key. The program ends when ESC key is pressed.


Compile & Excute

To compile and execute, use Visual Studio 2013. Open .sln file.

CAUTION: When running in a debugging mode, there may be some lags in the speed of the game while pressing onto any keys.


Test Environment

  • Windows 8.1
  • Visual Studio 2013
  • DirectX SDK 9.0

Licence

The MIT License (MIT)

Copyright (c) 2014 Jeungwon An, Sangil Yu, Jiyeon Kim, Suyon Lim

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Four Ball 과제

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published