ts.palette = result.palette;\r
\r
/* allocate the pixel storage for the tiles */\r
- ts.data = _fmalloc(sizeof(byte*) * ts.ntiles);\r
+ ts.data = malloc(sizeof(byte*) * ts.ntiles);\r
//ts.data[0] = malloc(sizeof(byte) * ts.ntiles * twidth * theight);\r
for(i=1; i < ts.ntiles; i++) {\r
ts.data[i] = ts.data[i-1] + twidth * theight;\r
\r
### Directory Structure!\r
\r
-16.exe = actual planned game executable! \r
-/ = root of project where executables are at \r
-16/ = experimental branch and example codes \r
-16/modex16/ = pngwen's code archived~ \r
-src/ = source of project~ \r
-doc/ = documentation of the project~ \r
+16.exe = actual planned game executable!\r
+/ = root of project where executables are at\r
+16/ = experimental branch and example codes\r
+16/modex16/ = pngwen's code archived~\r
+src/ = source of project~\r
+doc/ = documentation of the project~\r
doc/faq.txt = frequently asked questions file!\r
\r
### To compile:\r
\r
###TODO\r
https://github.com/sparky4/16/blob/master/TODO.md\r
+\r
+ project 16 is in deep dump right now\r
+ it is leaving the pre alpha state and heading into alpha state www\r
+ which means cache manager work but... it needs much rewriting for the new file formats\r
@wmake -s -h wwwext
wwwext: .symbolic
-# @wmake -s -h wwwext1
+ @wmake -s -h wwwext1
@wmake -s -h wwwext2
wwwext1: .symbolic
--- /dev/null
+OBJ=obj\r
+FLAGS=-0 -i"src/lib/doslib" -fo=.$(OBJ)\r
+\r
+all: 0croll.exe\r
+\r
+0croll.exe: 0croll.$(OBJ) omodex16.$(OBJ) bitmap.$(OBJ) 16_in.$(OBJ)\r
+ wcl $(FLAGS) 0croll.$(OBJ) omodex16.$(OBJ) bitmap.$(OBJ) 16_in.$(OBJ)\r
+0croll.$(OBJ): src/0croll.c\r
+ wcl $(FLAGS) -c src/0croll.c\r
+\r
+16_in.$(OBJ): src/lib/16_in.h src/lib/16_in.c\r
+ wcl $(FLAGS) -c src/lib/16_in.c\r
+\r
+omodex16.$(OBJ): 16/src/lib/omodex16.h 16/src/lib/omodex16.c\r
+ wcl $(FLAGS) -c 16/src/lib/omodex16.c\r
+\r
+bitmap.$(OBJ): 16/src/lib/bitmap.h 16/src/lib/bitmap.c\r
+ wcl $(FLAGS) -c 16/src/lib/bitmap.c\r
+\r
+clean:\r
+ rm *.$(OBJ)\r
+ rm *.exe\r
//TODO: top left corner & bottem right corner of map veiw be set as map edge trigger since omapS are actually square\r
//to stop scrolling and have the player position data move to the edge of the screen with respect to the direction\r
//when player.tx or player.ty == 0 or player.tx == 20 or player.ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
- while(!gvar.in.inst->Keyboard[77]){\r
+ while(gvar.in.inst->Keyboard[77]){\r
// for(q=0; q<TILEWH; q++) {\r
omapScrollRight(draw, 1);\r
// omodexShowPage(draw->page);\r
// }\r
}\r
\r
- while(!gvar.in.inst->Keyboard[75]){\r
+ while(gvar.in.inst->Keyboard[75]){\r
// for(q=0; q<TILEWH; q++) {\r
omapScrollLeft(draw, 1);\r
// omodexShowPage(draw->page);\r
// }\r
}\r
\r
- while(!gvar.in.inst->Keyboard[80]){\r
+ while(gvar.in.inst->Keyboard[80]){\r
// for(q=0; q<TILEWH; q++) {\r
omapScrollDown(draw, 1);\r
// omodexShowPage(draw->page);\r
// }\r
}\r
\r
- while(!gvar.in.inst->Keyboard[72]){\r
+ while(gvar.in.inst->Keyboard[72]){\r
// for(q=0; q<TILEWH; q++) {\r
omapScrollUp(draw, 1);\r
// omodexShowPage(draw->page);\r
\r
result.width =w;\r
result.height=h;\r
- result.data = _fmalloc(sizeof(byte) * w * h);\r
+ result.data = malloc(sizeof(byte) * w * h);\r
\r
return result;\r
}\r
int x, y;\r
int i;\r
int tile = 1;\r
- map->tiles = _fmalloc(sizeof(otiles_t));\r
+ map->tiles = malloc(sizeof(otiles_t));\r
\r
/* create the tile set */\r
- map->tiles->data = _fmalloc(sizeof(bitmap_t));\r
+ map->tiles->data = malloc(sizeof(bitmap_t));\r
map->tiles->data->width = (TILEWH*2);\r
map->tiles->data->height= TILEWH;\r
- map->tiles->data->data = _fmalloc((TILEWH*2)*TILEWH);\r
+ map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
map->tiles->tileHeight = TILEWH;\r
map->tiles->tileWidth =TILEWH;\r
map->tiles->rows = 1;\r
*\r
*/\r
\r
-#if !defined(__LARGE__) && !defined(__COMPACT__) && !defined(__HUGE__)\r
-#error Invalid memory model for compiling project 16\r
-#endif\r
+//#if !defined(__LARGE__) && !defined(__COMPACT__) && !defined(__HUGE__)\r
+//#error Invalid memory model for compiling project 16\r
+//#endif\r
\r
#if !defined(__i86__) && defined(__i386__)\r
#error i8088 only\r
-Subproject commit 69400af6d68a7c20510cf00374e3f27ba261ebbc
+Subproject commit 2388e6cde6d3bda5bb253198a853506e4f27d0bd
#!/bin/bash
git commit -a -m "$1"
-#git push x4 master
+git push x4 master
git push origin master
git push jp master
git push sf master