1
0

params.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /********************************************************************
  2. * Nomes: Gabriel Capella Números USP: 8962078
  3. * João Herique Luciano 8535957
  4. *
  5. * Tarefa: RedCore - EP2 MAC0463
  6. * Arquivo: params.h
  7. * Descrição: Definições de parâmetros usados no jogo
  8. ********************************************************************/
  9. #ifndef params_h
  10. #define params_h
  11. // BALL
  12. #define BALL_SIZE 15
  13. #define THROW_ANG 20 // in degrees
  14. #define INITIAL_SPEED 500
  15. // TAMANHO DO NUCLEO
  16. #define CORE_RADIUS 50
  17. // PADDLE
  18. #define PADDLE_WIDTH 120
  19. #define PADDLE_HEIGHT 10
  20. #define PADDLE_ALTURA 90
  21. // CORES
  22. #define COLOR_back Color4B(39, 40, 34, 255)
  23. #define COLOR_pink Color4B(249,38,114, 255)
  24. #define COLOR_blue Color4B(102,217,239, 255)
  25. #define COLOR_green Color4B(166,226,46, 255)
  26. #define COLOR_orange Color4B(253,151,31, 255)
  27. #define COLOR_grey Color4B(120,120,120, 255)
  28. #define COLOR_red Color4F(0.988, 0.147, 0.030, 1)
  29. // TAGs
  30. #define BALL_TAG 15
  31. #define BLOCK_TAG 10
  32. #define CORE_TAG 11
  33. #define BOTTOM_TAG 12
  34. #define INDESTRUCTIBLE_BLOCK_TAG 13
  35. #define PADDLE_TAG 14
  36. #define THREE_BALLS_TAG 9
  37. #define SAVE_TAG 8
  38. #define PADDLE_BALL_TAG 7
  39. #define SUPERBALL_TAG 6
  40. // Probabilities
  41. #define DROP_LEVEL_SAVE 0.03
  42. #define DROP_TRIPLE_BALL 0.06 // Aumenta com o tempo
  43. #define DROP_PADDLE_BALL 0.05
  44. #define DROP_SUPER_BALL 0.03
  45. // Power Ups Seconds Interval
  46. #define POWER_UP_INTERVAL 2.5
  47. // Time to paddle back to normal size
  48. #define POWER_UP_PADDLE_SECONDS 10
  49. // Hours to lose level
  50. #define LOSE_IS 12
  51. // FONT
  52. #define FONT "fonts/abel.ttf"
  53. // TEXT
  54. #define MSG_TRIPE_BALLS "Triple Balls!"
  55. #define MSG_LEVEL_SAVED "Level Saved!"
  56. #define MSG_TITLE "RedCore"
  57. #define MSG_OVER "Game Over..."
  58. #define MSG_DOUBLE_PADDLE "Doubled paddle!"
  59. #define MSG_HALF_PADDLE "Half paddle :("
  60. #define MSG_LEVEL_BACK "You are at level %d. In %.1f hour(s) you will regrow a level."
  61. #define MSG_NEXT_LEVEL "Next Level"
  62. #define MSG_RESTART "Restart"
  63. #define MSG_SUPER_BALL "Super Ball!"
  64. #define MSG_START "Start"
  65. // DEBUG
  66. #define DEBUG 0
  67. #endif /* params_h */