Looking for the latest version? Download pong_junior.tar.gz (11.3 kB)
Home
Name Modified Size Downloads / Week Status
Totals: 2 Items   14.4 kB 2
README 2011-04-06 3.0 kB 11 weekly downloads
pong_junior.tar.gz 2011-04-06 11.3 kB 11 weekly downloads
//**************************** PONG_JUNIOR : a multiplayer ping pong game *******************************// //****************************************** developed by ***********************************************// //***************************************** Siddhant Ujjain *********************************************// //************ AN OPEN SOURCE FREE LICENSED DISTRIBUTION(OPENGL AND SOCKET PROGRAMMING) *****************// The Multiplayer ping pong game has been implemented using tcp protocol and threads. The game is basically a server client model with a dedicated server. ..... PRE REQUISITES ..... 1. g++ compiler with the opengl library (preferably freeglut) 2. pthreads support in linux (generally available on most linux systems) 3. A local area network for lan-gaming. 4. Select the Visual Effects settings to "NONE" in BACKGROUD PREFERENCES. ....INSTALLATION.... No need for the installation. The game runs directly from the folder. .....COMPILE..... 1.Extract the .tar.gz. 2.Go to pong_junior directory using #cd pong_junior 3.and then make #make .....RUN..... Connect to the internet and put the terminal in the full screen mode. The game requires a dedicated server. So first run the server in one terminal window using: #make runserver The various options for selecting the game parameters will be displayed. Following are the hints: 1. For the number of players, enter 1,2,4 or 4. 2. For the number of balls, enter either 1 2 or 3. (idle value = 3) 3. For the difficulty level enter 1,2 or 3. (only for single player). Once the server is on, open a NEW terminal on same/different computer(Ensure that the host computer is connected to its clients through LAN for best results) and run the following commands after switching the terminal to the full screen mode : #cd make runclient * you need to provide the ip address of the server when asked (for the server running on the same machine type localhost). The game WILL NOT RUN until the required number of clients have connected to the network (thourgh different terminals on same/different computers) For best results keep only one client per system. **use make clean to remove executables** .......GAME PLAY...... 1. CONTROL : (A-left D-right) for horizontal paddle and (W-up S-down) for vertical paddle. 2. SCORE : The corresponding score of each player is shown against its paddle. The score decreases everytime u lose a ball from the initiaal value of 20. The player who gets the score 0 first, loses the game. 3. CONNECTION LOST : You can again join the game if somehow your connection is lost due to lan cable is plugged out while the game is on. In case of 2 players you need to join within 30 sec failing to do so, the server shuts down. ........................ The game is still under development phase. Feel free to make any suggestion or report any bugs that you come across to the undersigned. ........................................ CONTACT : zerobugs007@gmail.com........................................
Source: README, updated 2011-04-06