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.

23 lines
591 B

  1. #pragma once
  2. #include <curses.h> //include library for terminal graphics
  3. #define UP KEY_UP
  4. #define DOWN KEY_DOWN
  5. #define LEFT KEY_LEFT
  6. #define RIGHT KEY_RIGHT
  7. #define EXIT_GAME 'q'
  8. typedef int graphics_input; //the type of the graphics input
  9. #define GAME_TOP_WALL_Y 1
  10. #define GAME_BOTTOM_WALL_Y (LINES - 4)
  11. #define GAME_LEFT_WALL_X 1
  12. #define GAME_RIGHT_WALL_X (COLS - 2)
  13. void initializeGraphics(void);
  14. void endGraphics(void);
  15. void refreshScreen(void);
  16. void printChar(int y, int x, graphics_input img);
  17. void printMsg(int y, int x, char *str);
  18. char readChar(int y, int x);
  19. int readInpt();