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