You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
5.9 KiB

  1. /**********************************************************************************************
  2. *
  3. * raylib - Standard Game template
  4. *
  5. * Screens Functions Declarations (Init, Update, Draw, Unload)
  6. *
  7. * Copyright (c) 2014 Ramon Santamaria (@raysan5)
  8. *
  9. * This software is provided "as-is", without any express or implied warranty. In no event
  10. * will the authors be held liable for any damages arising from the use of this software.
  11. *
  12. * Permission is granted to anyone to use this software for any purpose, including commercial
  13. * applications, and to alter it and redistribute it freely, subject to the following restrictions:
  14. *
  15. * 1. The origin of this software must not be misrepresented; you must not claim that you
  16. * wrote the original software. If you use this software in a product, an acknowledgment
  17. * in the product documentation would be appreciated but is not required.
  18. *
  19. * 2. Altered source versions must be plainly marked as such, and must not be misrepresented
  20. * as being the original software.
  21. *
  22. * 3. This notice may not be removed or altered from any source distribution.
  23. *
  24. **********************************************************************************************/
  25. #ifndef SCREENS_H
  26. #define SCREENS_H
  27. //----------------------------------------------------------------------------------
  28. // Types and Structures Definition
  29. //----------------------------------------------------------------------------------
  30. typedef enum GameScreen { LOGO, LEVEL00, LEVEL01, LEVEL02, LEVEL03, LEVEL04, LEVEL05, LEVEL06, LEVEL07, LEVEL08, LEVEL09 } GameScreen;
  31. //----------------------------------------------------------------------------------
  32. // Global Variables Definition
  33. //----------------------------------------------------------------------------------
  34. GameScreen currentScreen;
  35. Sound levelWin;
  36. #ifdef __cplusplus
  37. extern "C" { // Prevents name mangling of functions
  38. #endif
  39. //----------------------------------------------------------------------------------
  40. // Logo Screen Functions Declaration
  41. //----------------------------------------------------------------------------------
  42. void InitLogoScreen(void);
  43. void UpdateLogoScreen(void);
  44. void DrawLogoScreen(void);
  45. void UnloadLogoScreen(void);
  46. int FinishLogoScreen(void);
  47. //----------------------------------------------------------------------------------
  48. // Level00 Screen Functions Declaration
  49. //----------------------------------------------------------------------------------
  50. void InitLevel00Screen(void);
  51. void UpdateLevel00Screen(void);
  52. void DrawLevel00Screen(void);
  53. void UnloadLevel00Screen(void);
  54. int FinishLevel00Screen(void);
  55. //----------------------------------------------------------------------------------
  56. // Level01 Screen Functions Declaration
  57. //----------------------------------------------------------------------------------
  58. void InitLevel01Screen(void);
  59. void UpdateLevel01Screen(void);
  60. void DrawLevel01Screen(void);
  61. void UnloadLevel01Screen(void);
  62. int FinishLevel01Screen(void);
  63. //----------------------------------------------------------------------------------
  64. // Level02 Screen Functions Declaration
  65. //----------------------------------------------------------------------------------
  66. void InitLevel02Screen(void);
  67. void UpdateLevel02Screen(void);
  68. void DrawLevel02Screen(void);
  69. void UnloadLevel02Screen(void);
  70. int FinishLevel02Screen(void);
  71. //----------------------------------------------------------------------------------
  72. // Level03 Screen Functions Declaration
  73. //----------------------------------------------------------------------------------
  74. void InitLevel03Screen(void);
  75. void UpdateLevel03Screen(void);
  76. void DrawLevel03Screen(void);
  77. void UnloadLevel03Screen(void);
  78. int FinishLevel03Screen(void);
  79. //----------------------------------------------------------------------------------
  80. // Level04 Screen Functions Declaration
  81. //----------------------------------------------------------------------------------
  82. void InitLevel04Screen(void);
  83. void UpdateLevel04Screen(void);
  84. void DrawLevel04Screen(void);
  85. void UnloadLevel04Screen(void);
  86. int FinishLevel04Screen(void);
  87. //----------------------------------------------------------------------------------
  88. // Level05 Screen Functions Declaration
  89. //----------------------------------------------------------------------------------
  90. void InitLevel05Screen(void);
  91. void UpdateLevel05Screen(void);
  92. void DrawLevel05Screen(void);
  93. void UnloadLevel05Screen(void);
  94. int FinishLevel05Screen(void);
  95. //----------------------------------------------------------------------------------
  96. // Level06 Screen Functions Declaration
  97. //----------------------------------------------------------------------------------
  98. void InitLevel06Screen(void);
  99. void UpdateLevel06Screen(void);
  100. void DrawLevel06Screen(void);
  101. void UnloadLevel06Screen(void);
  102. int FinishLevel06Screen(void);
  103. //----------------------------------------------------------------------------------
  104. // Level07 Screen Functions Declaration
  105. //----------------------------------------------------------------------------------
  106. void InitLevel07Screen(void);
  107. void UpdateLevel07Screen(void);
  108. void DrawLevel07Screen(void);
  109. void UnloadLevel07Screen(void);
  110. int FinishLevel07Screen(void);
  111. //----------------------------------------------------------------------------------
  112. // Level08 Screen Functions Declaration
  113. //----------------------------------------------------------------------------------
  114. void InitLevel08Screen(void);
  115. void UpdateLevel08Screen(void);
  116. void DrawLevel08Screen(void);
  117. void UnloadLevel08Screen(void);
  118. int FinishLevel08Screen(void);
  119. //----------------------------------------------------------------------------------
  120. // Level09 Screen Functions Declaration
  121. //----------------------------------------------------------------------------------
  122. void InitLevel09Screen(void);
  123. void UpdateLevel09Screen(void);
  124. void DrawLevel09Screen(void);
  125. void UnloadLevel09Screen(void);
  126. int FinishLevel09Screen(void);
  127. void DrawRectangleBordersRec(Rectangle rec, int offsetX, int offsetY, int borderSize, Color col);
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131. #endif // SCREENS_H