OSDN Git Service

====scroll.exe coverted and bakapi.exe converted!! this is a major commit!
[proj16/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 #define TILE
36
37 typedef struct {\r
38         word gq;
39         word qq;\r
40         sword bakax, bakay;\r
41         sword xx, yy, sx, sy;\r
42         byte coor;
43 } bakapee_t;
44
45 void pdump(page_t *pee);
46 void cls(page_t *page, byte color, byte *Where);
47 void colortest(page_t *page, bakapee_t *pee);
48 void colorz(page_t *page, bakapee_t *pee);
49 void ssd(page_t *page, bakapee_t *pee, word svq);
50 void dingpp(page_t *page, bakapee_t *pee);
51 void dingo(bakapee_t *pee);
52 void dingas(bakapee_t *pee);
53 void dingu(bakapee_t *pee);
54 void ding(page_t *page, bakapee_t *pee, word q);
55
56 #endif /*__BAKAPEE_H_*/