xref: /plan9/sys/src/games/xs.h (revision 68412abfd32cf2b40bc99e2a1363ebd4a35a4480)
1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
4 #include <thread.h>
5 #include <cursor.h>
6 #include <mouse.h>
7 #include <keyboard.h>
8 
9 enum
10 {
11 	MAXN = 5
12 };
13 
14 typedef struct Piece Piece;
15 struct Piece{
16 	short	rot;
17 	short	tx;
18 	Point	sz;
19 	Point	d[MAXN];
20 };
21 
22 extern int N, NP;
23 extern Piece pieces[];
24 
25