\r
qqqqqqqq\r
\r
+chkcolor start~\r
+1 (*z): 0\r
+1 (*i): 39\r
+wwwwwwwwwwwwwwww\r
+!! a[30]: 0\r
+!! a[31]: 11\r
+!! a[38]: 28\r
+wwwwwwwwwwwwwwww\r
+2 (*z): 39\r
+2 (*i): 39\r
+chkcolor end~\r
+p[]=0 qp=90 p[]-qp=90\r
+p[]=1 qp=90 p[]-qp=91\r
+p[]=2 qp=90 p[]-qp=92\r
+ 90's color=3\r
+ 91's color=3\r
+ 92's color=3\r
+\r
+qqqqqqqq\r
+\r
+p[]=0 qp=93 p[]-qp=93\r
+p[]=1 qp=93 p[]-qp=94\r
+p[]=2 qp=93 p[]-qp=95\r
+p[]=3 qp=93 p[]-qp=96\r
+p[]=4 qp=93 p[]-qp=97\r
+p[]=5 qp=93 p[]-qp=98\r
+ 93's color=39\r
+ 94's color=39\r
+ 95's color=39\r
+\r
+qqqqqqqq\r
+\r
+p[]=0 qp=114 p[]-qp=114\r
+p[]=1 qp=114 p[]-qp=115\r
+p[]=2 qp=114 p[]-qp=116\r
+p[]=3 qp=114 p[]-qp=117\r
+p[]=4 qp=114 p[]-qp=118\r
+p[]=5 qp=114 p[]-qp=119\r
+p[]=6 qp=114 p[]-qp=120\r
+p[]=7 qp=114 p[]-qp=121\r
+p[]=8 qp=114 p[]-qp=122\r
+p[]=9 qp=114 p[]-qp=123\r
+p[]=10 qp=114 p[]-qp=124\r
+p[]=11 qp=114 p[]-qp=125\r
+p[]=12 qp=114 p[]-qp=126\r
+p[]=13 qp=114 p[]-qp=127\r
+p[]=14 qp=114 p[]-qp=128\r
+p[]=15 qp=114 p[]-qp=129\r
+p[]=16 qp=114 p[]-qp=130\r
+p[]=17 qp=114 p[]-qp=131\r
+p[]=18 qp=114 p[]-qp=132\r
+p[]=19 qp=114 p[]-qp=133\r
+p[]=20 qp=114 p[]-qp=134\r
+p[]=21 qp=114 p[]-qp=135\r
+p[]=22 qp=114 p[]-qp=136\r
+p[]=23 qp=114 p[]-qp=137\r
+p[]=24 qp=114 p[]-qp=138\r
+p[]=25 qp=114 p[]-qp=139\r
+p[]=26 qp=114 p[]-qp=140\r
+ 114's color=111\r
+ 115's color=111\r
+ 116's color=111\r
+\r
+qqqqqqqq\r
+\r
\r
====\r
-0 paloffset= 10\r
+0 paloffset= 38\r
====\r
\r
i=1\r
player.triggx: 10 player.triggy: 9\r
player.hp: 4 player.q: 1 player.d: 0\r
tile data value at player trigger position: 0\r
-palette offset: 10\r
-Total used: 32328\r
-Total free: 25816\r
+palette offset: 38\r
+Total used: 51566\r
+Total free: 6562\r
temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\r
temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\r
Screen: 352x280\r
#include "src/lib/dos_kb.h"\r
#include "src/lib/mapread.h"\r
-//#include "16\lib\x\modex.h"\r
#include "src/lib/wtest/wtest.c"\r
#include "src/lib/planar.c"\r
//====#include "src\lib\ems.c"\r
-//#define LOADDATA
-\r
//word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
\r
-/*typedef struct {\r
- bitmap_t *data;\r
- word tileHeight;\r
- word tileWidth;\r
- unsigned int rows;\r
- unsigned int cols;\r
-} tiles_t;\r
-\r
-\r
-typedef struct {\r
- byte *data;\r
- tiles_t *tiles;\r
- int width;\r
- int height;\r
-} map_t;*/\r
-\r
-\r
typedef struct {\r
map_t *map;\r
page_t *page;\r
//place holder definitions\r
//#define MAPX 200\r
//#define MAPY 150\r
-#define TRIGGX 10\r
-#define TRIGGY 9\r
+//#define TRIGGX 10\r
+//#define TRIGGY 9\r
\r
void main() {\r
size_t oldfreemem=GetFreeSize();\r
\r
/* create the map */\r
//0000 printf("Total used @ before map load: %zu\n", oldfreemem-GetFreeSize());
-//0000 #ifdef LOADDATA
//0000 fprintf(stderr, "testing~\n");
loadmap("data/test.map", &map);
//0000 fprintf(stderr, "yay map loaded~~\n");
-//0000 #endif\r
//---- map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly\r
//if(isEMS()) printf("%d tesuto\n", coretotalEMS());\r
//---- initMap(&map);\r
mappalptr = map.tiles->data->palette;\r
/* data */\r
//0000 printf("Total used @ before image loading: %zu\n", oldfreemem-GetFreeSize());
-#ifdef LOADDATA\r
ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
-#endif\r
//npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite\r
\r
/* create the planar buffer */\r
//0000 printf("Total used @ before planar buffer creation: %zu\n", oldfreemem-GetFreeSize());
-#ifdef LOADDATA\r
p = planar_buf_from_bitmap(&ptmp);
-#endif\r
//0000 printf("Total used @ after planar buffer creation: %zu\n", oldfreemem-GetFreeSize());\r
\r
/*if(isEMS())\r