FLAGS=-0 -d2 \r
SRC=src\\r
SRCLIB=$(SRC)lib\\r
-all: test.exe pcxtest.exe test2.exe maptest.exe scroll.exe\r
+all: test.exe pcxtest.exe test2.exe scroll.exe\r
\r
scroll.exe: scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj\r
wcl $(FLAGS) scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj 16\lib\x\modex.lib\r
pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj\r
wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj\r
\r
-maptest.exe: maptest.obj mapread.obj jsmn.obj\r
- wcl $(FLAGS) maptest.obj jsmn.obj\r
+#maptest.exe: maptest.obj mapread.obj jsmn.obj\r
+# wcl $(FLAGS) maptest.obj jsmn.obj\r
\r
test.obj: $(SRC)test.c $(SRCLIB)modex16.h\r
wcl $(FLAGS) -c $(SRC)test.c\r
pcxtest.obj: $(SRC)pcxtest.c $(SRCLIB)modex16.h\r
wcl $(FLAGS) -c $(SRC)pcxtest.c\r
\r
-maptest.obj: $(SRC)maptest.c $(SRCLIB)mapread.h\r
- wcl $(FLAGS) -c $(SRC)maptest.c\r
+#maptest.obj: $(SRC)maptest.c $(SRCLIB)mapread.h\r
+# wcl $(FLAGS) -c $(SRC)maptest.c\r
\r
modex16.obj: $(SRCLIB)modex16.h $(SRCLIB)modex16.c\r
wcl $(FLAGS) -c $(SRCLIB)modex16.c\r
map->data = malloc(sizeof(byte) * (t+1)->size);
map->tiles = malloc(sizeof(tiles_t));
map->tiles->data = malloc(sizeof(bitmap_t));
+ //map->tiles->data = bitmapLoadPcx("data/chikyuu.pcx");
map->tiles->data->data = malloc((16/**2*/)*16);
+ map->tiles->data->width = (16/**2*/);\r
+ map->tiles->data->height= 16;\r
+ map->tiles->tileHeight = 16;\r
+ map->tiles->tileWidth = 16;\r
+ map->tiles->rows = 1;\r
+ map->tiles->cols = 1;
js_sv="data";//strdup(js+t->start);//, t->end - t->start);
}
else
loadmap("data/test.map", &map/*, 0*/);
// 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
//if(isEMS()) printf("%d tesuto\n", coretotalEMS());\r
- initMap(&map);\r
+// initMap(&map);\r
mv.map = ↦\r
mv2.map = ↦\r
mv3.map = ↦\r
/* draw the tiles */\r
ptr = map.data;\r
/* data */\r
- ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite\r
+ ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite\r
//npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite\r
/* create the planar buffer */\r
p = planar_buf_from_bitmap(&ptmp);\r
// map->tiles->data = malloc(sizeof(bitmap_t));\r
//else\r
// map->tiles->data = (bitmap_t *)alloc_emem(sizeof(bitmap_t));\r
- map->tiles->data->width = (TILEWH/**2*/);\r
- map->tiles->data->height= TILEWH;\r
+// map->tiles->data->width = (TILEWH/**2*/);\r
+// map->tiles->data->height= TILEWH;\r
//if(!isEMS() || !checkEMS())\r
// map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
//else\r
// map->tiles->data->data = (byte *)alloc_emem((TILEWH*2)*TILEWH);\r
- map->tiles->tileHeight = TILEWH;\r
- map->tiles->tileWidth =TILEWH;\r
- map->tiles->rows = 1;\r
- map->tiles->cols = 1;//2;\r
+// map->tiles->tileHeight = TILEWH;\r
+// map->tiles->tileWidth =TILEWH;\r
+// map->tiles->rows = 1;\r
+// map->tiles->cols = 1;//2;\r
\r
/*q=0;
//for(y=0; y<map->height; y++) {\r