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.

19 lines
462 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. void initializeGraphics(void);
  10. void endGraphics(void);
  11. void refreshScreen(void);
  12. void printChar(int y, int x, graphics_input img);
  13. void printMsg(int y, int x, char *str);
  14. char readChar(int y, int x);
  15. int readInpt();