]> 4ch.mooo.com Git - 16.git/blobdiff - src/0croll.c
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / src / 0croll.c
index aabb518bd7eb4ccd6fa05647b2e5f378041b0edf..151a0bf4e7173533e880042270f1da8d32dfb569 100755 (executable)
@@ -3,6 +3,7 @@
 #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
@@ -75,7 +76,7 @@ void main() {
 //     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 = &map;\r
 //     mv2.map = &map;\r
@@ -96,6 +97,7 @@ void main() {
 //     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
@@ -103,7 +105,7 @@ void main() {
        //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
@@ -112,7 +114,7 @@ void main() {
 //             }\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
@@ -121,7 +123,7 @@ void main() {
 //             }\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
@@ -130,7 +132,7 @@ void main() {
 //             }\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