root/screen.h
/* [<][>][^][v][top][bottom][index][help] */
1 /* screen.h */
2 #ifndef _SCREEN_H_
3 #define _SCREEN_H_
4
5 #include<vector2.h>
6 #include<object.h>
7
8 #define SCREENWIDTH 40
9 #define SCREENHEIGHT 40
10
11 extern unsigned char* dispbuffer;
12 extern unsigned char* checkbuffer;
13
14 extern const unsigned char NONOBJ;
15 extern const unsigned char WALL;
16 extern const unsigned char BORDER;
17
18 void initscreen(void);
19 void putdata(int x, int y, unsigned char d, unsigned char c);
20 unsigned char checkcollision(vector2 pos, object* obj);
21
22 #endif