params.h 1.7 KB

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