#include "16/src/lib/bitmap.h"\r
#include <stdio.h>\r
#include <stdlib.h>\r
+#include <malloc.h>\r
//#include "dos_kb.h"\r
#define SCREEN_WIDTH 320\r
#define SCREEN_HEIGHT 240\r
// setkb(1);\r
IN_Startup(&gvar);\r
/* create the map */\r
- map = allocMap(160,120); //20x15 is the resolution of the screen you can make omapS smaller than 20x15 but the null space needs to be drawn properly\r
+ map = allocMap(40,30); //20x15 is the resolution of the screen you can make omapS smaller than 20x15 but the null space needs to be drawn properly\r
oinitMap(&map);\r
mv.map = ↦\r
// mv2.map = ↦\r
// show = &mv;\r
// draw = &mv2;\r
draw = &mv;\r
+//IN_StartAck (&gvar); while (!IN_CheckAck (&gvar)){ } omodexLeave(); IN_Shutdown(&gvar); exit(0);\r
\r
//TODO: set player position data here according to the viewable map screen thingy\r
\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
+ if(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
+ if(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
+ if(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
+ if(gvar.in.inst->Keyboard[72]){\r
// for(q=0; q<TILEWH; q++) {\r
omapScrollUp(draw, 1);\r
// omodexShowPage(draw->page);\r