]> 4ch.mooo.com Git - 16.git/blob - src/lib/bakapee.h
Merge remote-tracking branch 'upstream/master'
[16.git] / src / lib / bakapee.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\r
3  *\r
4  * This file is part of Project 16.\r
5  *\r
6  * Project 16 is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 3 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * Project 16 is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
18  * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
19  * Fifth Floor, Boston, MA 02110-1301 USA.\r
20  *\r
21  */\r
22 \r
23 #ifndef __BAKAPEE_H_\r
24 #define __BAKAPEE_H_\r
25 \r
26 #include "src/lib/16_head.h"\r
27 #include "src/lib/modex16.h"\r
28 #include <hw/cpu/cpu.h>\r
29 #include <hw/dos/dos.h>\r
30 #include <hw/vga/vga.h>\r
31 //#include "src/lib/modex/modex.h"\r
32 //#include "16/x/modex.h"\r
33 \r
34 #define TILEWH 16\r
35 #define QUADWH                  TILEWH/2\r
36 #define BONK        400\r
37 #define LGQ          32\r
38 #define HGQ          55\r
39 \r
40 #define TILE\r
41 \r
42 //which lib?\r
43 #define MXLIB\r
44 \r
45 typedef struct {\r
46         word gq;\r
47         sword bakax, bakay;\r
48         sword xx, yy, sx, sy;\r
49         byte coor;\r
50         boolean tile;\r
51 } bakapee_t;\r
52 \r
53 void clrstdin();\r
54 void colortest(page_t *page, bakapee_t *pee);\r
55 void colorz(page_t *page, bakapee_t *pee);\r
56 void ssd(page_t *page, bakapee_t *pee, word svq);\r
57 void dingpp(page_t *page, bakapee_t *pee);\r
58 void dingo(page_t *page, bakapee_t *pee);\r
59 void dingas(bakapee_t *pee);\r
60 void dingu(bakapee_t *pee);\r
61 void dingq(bakapee_t *pee);\r
62 void ding(page_t *page, bakapee_t *pee, word q);\r
63 \r
64 #endif /*__BAKAPEE_H_*/\r