1
0

bounce.h 475 B

123456789101112131415161718192021222324252627
  1. /* bounce.h */
  2. /* some settings for the game */
  3. #define BLANK ' '
  4. #define DFL_SYMBOL 'o'
  5. #define TOP_ROW 5
  6. #define BOT_ROW 20
  7. #define LEFT_EDGE 10
  8. #define RIGHT_EDGE 70
  9. #define X_INIT 10 /* starting col */
  10. #define Y_INIT 10 /* starting row */
  11. #define TICKS_PER_SEC 50 /* affects speed */
  12. #define X_TTM 5
  13. #define Y_TTM 8
  14. /** the ping pong ball **/
  15. struct ppball {
  16. int y_pos, x_pos,
  17. y_ttm, x_ttm,
  18. y_ttg, x_ttg,
  19. y_dir, x_dir;
  20. char symbol ;
  21. } ;