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.

43 lines
1.0KB

  1. #ifndef DRAW_H
  2. #define DRAW_H
  3. void loadgfx(void);
  4. void drawstring(int xpos, int ypos, const char *str);
  5. void drawbigstring(int xpos, int ypos, const char *str);
  6. void centerbig(int y, const char *str);
  7. void addsprite(int x,int y,figure *fig);
  8. void plotsprites(void);
  9. void erasesprites(void);
  10. void clearsprites(void);
  11. void clearspritelist(void);
  12. int tovideox(int x);
  13. int tovideoy(int y);
  14. int screentoarrayx(int x);
  15. int screentoarrayy(int y);
  16. int arraytoscreenx(int x);
  17. int arraytoscreeny(int y);
  18. void failure(char *str,...);
  19. extern int fontxsize,fontysize;
  20. extern int bigfontxsize,bigfontysize,bigfontyspace;
  21. /* On screen array variables */
  22. extern int arraynumx, arraynumy, arraystartx, arraystarty, arrayspacex, arrayspacey;
  23. /* Animation specific #defines */
  24. #define NUMBOMBFRAMES 10
  25. #define NUMWALKFRAMES 60
  26. #define NUMFLAMEFRAMES 80
  27. #define NUMDEATHFRAMES 41
  28. extern figure blocks[3], blocksx[9], bombs1[MAXSETS][NUMBOMBFRAMES], bombs2[MAXSETS][NUMBOMBFRAMES], flamefigs[MAXSETS][NUMFLAMEFRAMES], tiles[15], death[NUMDEATHFRAMES];
  29. #endif