decna12255

Untitled

Mar 12th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. highscores header:
  2. #ifndef HIGHSCORE_H_
  3. #define HIGHSCORE_H_
  4.  
  5. //int iHighScores[10];
  6.  
  7.  
  8. //void iHighScore_System();
  9. //{
  10. //int iHighScores[10];
  11. //int iScore = 0;
  12.  
  13. //char scorestring[]; = "score"
  14. //while (iscore < 6)
  15.  
  16.  
  17. //DrawString("HighScores: %i %i/n"), (iScore+1), iHighScores[iScore]);
  18. //// ++iScore;
  19.  
  20. // for(int iHighScores = 0; iHighScores < 10; iHighscore++)
  21.  
  22. //}
  23.  
  24.  
  25.  
  26.  
  27. #endif
  28.  
  29. background header file:
  30. ifndef BACKGROUND_MENU_H
  31. #define BACKGROUND_MENU_H
  32.  
  33. // DECLAN-CORCORAN'S PONG PROGRAM ASSIGNMENT ONE
  34. //Header for background and menu functions
  35. #include "pctimer.h"
  36. #include <string>
  37. #include <cmath>
  38. #include <stdio.h>
  39. #include <crtdbg.h>
  40. #include <stdlib.h>
  41.  
  42.  
  43.  
  44. void iBackGround();
  45.  
  46. #endif
  47.  
  48.  
  49. padde header:
  50. #ifndef PADDLE_FUNCTIONS_H_
  51. #define PADDLE_FUNCTIONS_H_
  52.  
  53. // DECLAN-CORCORAN'S PONG PROGRAM ASSIGNMENT ONE
  54. //Header for paddle functions
  55.  
  56.  
  57. #include "pctimer.h"
  58. #include <string>
  59. #include <cmath>
  60. #include <stdio.h>
  61. #include <crtdbg.h>
  62. #include <stdlib.h>
  63.  
  64.  
  65. void iPaddles();
  66.  
  67.  
  68.  
  69.  
  70. #endif
  71.  
  72.  
  73.  
  74. player controls headers:
  75. #ifndef PLAYER_CONTROLLS_H_
  76. #define PLAYER_CONTROLLS_H_
  77.  
  78. // DECLAN-CORCORAN'S PONG PROGRAM ASSIGNMENT ONE
  79. //Header for player controls
  80. #include "pctimer.h"
  81. #include <string>
  82. #include <cmath>
  83. #include <stdio.h>
  84. #include <crtdbg.h>
  85. #include <stdlib.h>
  86.  
  87.  
  88.  
  89.  
  90.  
  91. void iPlayer_Controlls();
  92.  
  93.  
  94.  
  95.  
  96. #endif
  97.  
  98. textures headers:
  99. #ifndef TEXTURES_H_
  100. #define TEXTURES_H_
  101.  
  102. // DECLAN-CORCORAN'S PONG PROGRAM ASSIGNMENT ONE
  103. //Header for Textures/imagies
  104.  
  105. #include <Windows.h>
  106. #include "GL_Functions.h"
  107. #include "pctimer.h"
  108. #include <string>
  109. #include <cmath>
  110. #include <stdio.h>
  111. #include <crtdbg.h>
  112. #include <stdlib.h>
  113.  
  114.  
  115.  
  116. void iTextures()
  117. {
  118. int iBackGroundTexture = LoadTexture ("./images/background.png");
  119. int iBallTexture = LoadTexture ("./images/mball.png");
  120. int iLeftPaddle = LoadTexture ("./images/paddle_2.png");
  121. int iRightPaddle = LoadTexture ("./images/paddle_1.png");
  122. int Menu = LoadTexture ("./images/MENU.png");
  123.  
  124. }
  125.  
  126.  
  127.  
  128.  
  129.  
  130. #endif
  131.  
  132. and enum header:
  133. #ifndef ENUM_H_
  134. #define ENUM_H_
  135.  
  136. // DECLAN-CORCORAN'S PONG PROGRAM ASSIGNMENT ONE
  137. //Header for ball functions
  138. #include <Windows.h>
  139. #include "GL_Functions.h"
  140. #include "pctimer.h"
  141. #include <string>
  142. #include <cmath>
  143. #include <stdio.h>
  144. #include <crtdbg.h>
  145. #include <stdlib.h>
  146.  
  147.  
  148.  
  149. enum GAME_STATE;
  150. {
  151. STATE_MAINMENU, // will take user to main menu at start of game or during
  152. STATE_SINGLEPLAYER, // one player mode vsing AI
  153. STATE_MULTIPLAYER, // player vs player mode
  154. STATE_HIGHSCORES, //lists high score
  155. STATE_INSTRUCTIONS, // opens the options menu
  156. STATE_QUIT // when user presses escape key program closes
  157. };
  158.  
  159.  
  160.  
  161. #endif
  162.  
  163. thanks for taking ur time to look at this.
Advertisement
Add Comment
Please, Sign In to add comment