]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/DOS_GFX.EXE
authorsparky4 <sparky4@4ch.maidlab.jp>
Wed, 4 Jun 2014 05:15:50 +0000 (00:15 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Wed, 4 Jun 2014 05:15:50 +0000 (00:15 -0500)
modified:   16/DOS_GFX.OBJ
modified:   16/Project 16.bfproject
modified:   16/dos_gfx.cpp
modified:   16/dos_gfx.h

16/DOS_GFX.EXE
16/DOS_GFX.OBJ
16/Project 16.bfproject
16/dos_gfx.cpp
16/dos_gfx.h

index 634b6bc4dddcb1f39209b809a3be02fbc341d135..4019618bcb5b367dfb19a683a6eefbe8730f5c43 100644 (file)
Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ
index 7b489c259263f5c41cbc1d1b0e5a86c059e85f60..00248b20692579e8fe325fff7e490e44f81f01cd 100644 (file)
Binary files a/16/DOS_GFX.OBJ and b/16/DOS_GFX.OBJ differ
index 7f1e4040591da56ffbe1b32b8db57ce41be651f6..e962e60138a337a25a0d5334540dfa7d99dc43c9 100644 (file)
@@ -1,21 +1,20 @@
 c2e.convert_special: 0
 e2c.convert_num: 0
-openfiles: /dos/z/16/16/dos_gfx.cpp:7011:6876:1:
-openfiles: /dos/z/16/16/dos_gfx.h:477:0:0:
+openfiles: /dos/z/16/16/dos_gfx.cpp:6494:6858:1:
+openfiles: /dos/z/16/16/dos_gfx.h:363:0:0:
 openfiles: /dos/z/16/16/dos_kb.c:892:395:0:
 openfiles: /dos/z/16/16/dos_kb.h:60:0:0:
 openfiles: /dos/z/16/16/lib/lib_com.cpp:0:0:0:
 openfiles: /dos/z/16/16/lib/lib_com.h:2553:1416:0:
 openfiles: /dos/z/16/16/scroll.txt:5307:5080:0:
-openfiles: /dos/z/16/16/project16.txt:8161:7087:0:
+openfiles: /dos/z/16/16/project16.txt:8161:6091:0:
 openfiles: /dos/z/16/16/16.txt:0:0:0:
-openfiles: /dos/z/16/16/lib/x/MODEX.H:4215:3474:0:
-openfiles: /dos/z/16/16/lib/x/MODEX.DEF:4471:3131:0:
-openfiles: /dos/z/16/16/lib/x/MAKEFILE:1186:782:0:
-openfiles: /dos/z/4x4_16/modex/DEMO07.PAS:985:490:0:
+openfiles: /dos/z/16/16/lib/x/MODEX.H:4025:2832:0:
 openfiles: /dos/z/16/16/lib/intro/lib.c:2417:1910:0:
 openfiles: /dos/z/16/src/lib/dos_gfx.cpp:2384:0:0:
 openfiles: /dos/z/16/src/lib/dos_gfx.h:0:0:0:
+openfiles: /dos/z/4x4_16/modex/DEMO01.PAS:3301:2608:0:
+openfiles: /dos/z/4x4_16/!/c/TUT10.C:4286:3454:0:
 snr_recursion_level: 0
 convertcolumn_horizontally: 0
 adv_open_matchname: 0
@@ -27,10 +26,10 @@ view_left_panel: 0
 default_mime_type: text/plain
 e2c.convert_xml: 1
 c2e.convert_iso: 0
-opendir: file:///dos/z/16/src/lib
+opendir: file:///dos/z/4x4_16/!/c
 wrap_text_default: 0
 bookmarks_filename_mode: 1
-ssearch_text: text
+ssearch_text: Readkey;
 snr_casesens: 0
 view_blocks: 1
 name: project 16
@@ -79,21 +78,23 @@ recent_files: file:///dos/z/16/16/xx.bat
 recent_files: file:///dos/z/16/16/lib/x/MXVS.ASM
 recent_files: file:///dos/z/16/16/lib/x/MXPN.ASM
 recent_files: file:///dos/z/16/16/dos_gfx.cpp
-recent_files: file:///dos/z/16/16/lib/lib_com.h
 recent_files: file:///dos/z/16/16/dos_gfx.h
 recent_files: file:///dos/z/16/16/dos_kb.c
 recent_files: file:///dos/z/16/16/dos_kb.h
 recent_files: file:///dos/z/16/16/lib/lib_com.cpp
+recent_files: file:///dos/z/16/16/lib/lib_com.h
 recent_files: file:///dos/z/16/16/scroll.txt
 recent_files: file:///dos/z/16/16/project16.txt
-recent_files: file:///dos/z/16/16/16.txt
-recent_files: file:///dos/z/16/src/lib/dos_gfx.h
-recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
-recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS
-recent_files: file:///dos/z/16/16/lib/x/MAKEFILE
 recent_files: file:///dos/z/16/16/lib/x/MODEX.H
 recent_files: file:///dos/z/16/16/lib/x/MODEX.DEF
+recent_files: file:///dos/z/16/src/lib/dos_gfx.h
+recent_files: file:///dos/z/16/16/16.txt
+recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS
+recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
 recent_files: file:///dos/z/16/16/lib/intro/lib.c
+recent_files: file:///dos/z/16/16/lib/x/MAKEFILE
+recent_files: file:///dos/z/4x4_16/modex/DEMO01.PAS
+recent_files: file:///dos/z/4x4_16/!/c/TUT10.C
 snr_replacetype: 0
 savedir: file:///dos/z/16/16
 spell_check_default: 1
@@ -105,11 +106,6 @@ snr_escape_chars: 0
 htmlbar_view: 0
 spell_lang: en
 ssearch_dotmatchall: 0
-searchlist: setvir
-searchlist: virtual
-searchlist: STEPS
-searchlist: mxSetClip( TRUE );
-searchlist: world_matrix
 searchlist: mxPutPixel
 searchlist: setactive
 searchlist: vga
@@ -120,6 +116,11 @@ searchlist: mxSetTextColor
 searchlist: OP_TRANS
 searchlist: texyt
 searchlist: text
+searchlist: Palette
+searchlist: bios_keybrd
+searchlist:   Readkey;  Readkey;
+searchlist:  Readkey;
+searchlist: Readkey;
 autocomplete: 1
 outputb_show_all_output: 0
 bookmarks_show_mode: 0
index 195624d063b790566ea74dcdfcd6573ae1fe94b6..40c0a24df0436767564f16af03fe9f093560b9e9 100644 (file)
@@ -112,7 +112,7 @@ int ding(int q){
                ||q==16\r
                ) && gq == BONK){\r
                                                if(coor < HGQ && coor < LGQ) coor = LGQ;\r
-                                               if(coor < HGQ){\r
+                                               if(coor < HGQ-1){\r
                                                                coor++;\r
                                }else{ coor = LGQ;\r
                                                bakax = rand()%3; bakay = rand()%3;\r
@@ -182,18 +182,18 @@ int ding(int q){
                                                                }\r
                                                }else{\r
                                                                if(!bakax){\r
-                                                                       xx-=TILEWH;\r
-//                                                                     xx--;\r
+//                                                                     xx-=TILEWH;\r
+                                                                       xx--;\r
                                                                }else if(bakax>1){\r
-                                                                       xx+=TILEWH;\r
-//                                                                     xx++;\r
+//                                                                     xx+=TILEWH;\r
+                                                                       xx++;\r
                                                                }\r
                                                                if(!bakay){\r
-                                                                       yy-=TILEWH;\r
-//                                                                     yy--;\r
+//                                                                     yy-=TILEWH;\r
+                                                                       yy--;\r
                                                                }else if(bakay>1){\r
-                                                                       yy+=TILEWH;\r
-//                                                                     yy++;\r
+//                                                                     yy+=TILEWH;\r
+                                                                       yy++;\r
                                                                }\r
                                                }\r
                                }\r
@@ -216,13 +216,13 @@ int ding(int q){
 \r
                                // plot the pixel\r
                                }else{\r
-                                       mxFillBox(xx, yy, TILEWH, TILEWH, coor, 0);\r
-//                                     mxPutPixel(xx, yy, coor);\r
+//                                     mxFillBox(xx, yy, TILEWH, TILEWH, coor, 16);\r
+                                       mxPutPixel(xx, yy, coor);\r
                                } \r
 \r
-                               if(q==2) mxPutPixel(rand()%SW, rand()%(SH*3), 0);\r
-                               if(q==16) mxPutPixel(rand()%SW, rand()%(SH*3), 0);\r
-                               if(q==2||q==4||q==16){ bakax = rand()%3; bakay = rand()%3; }\r
+                               if(q==2) mxPutPixel(rand()%VW, rand()%(VH), 0);\r
+                               if(q==16) mxPutPixel(rand()%VW, rand()%(VH), 0);\r
+                               if(q==2||q==4||q==16){ bakax = rand()%3; bakay = rand()%3; }  //random 3 switch\r
                                gq++;\r
 //if(xx<0||xx>320||yy<0||yy>(SH*3))\r
 //       printf("%d %d %d %d %d %d\n", xx, yy, coor, bakax, bakay, getPixel_X(xx,yy));\r
@@ -244,7 +244,8 @@ int ding(int q){
 \r
 int main(void)\r
                {\r
-               int key,d,xpos,ypos,xdir,ydir;\r
+               int key,d,xpos,ypos,xdir,ydir;
+               int ch=0x0;\r
                //short int temp;\r
                // main variables\r
                d=1; // switch variable\r
@@ -269,8 +270,9 @@ int main(void)
                                                setvideo(1);\r
                                }\r
                }*/ // else off\r
-               while(!kbhit()){ // conditions of screen saver\r
-                       ding(key);\r
+               while(1){ // conditions of screen saver
+               while(!kbhit()){\r
+                       ding(key);
                }\r
                //end of screen savers\r
                //doTest();\r
@@ -284,8 +286,6 @@ int main(void)
                                mxPutPixel(0, y, 15);\r
                                mxPutPixel(SW-1, y, 15);\r
                        }\r
-\r
-               getch();\r
                for (int x = 320; x < VW; ++x)\r
                        {\r
                                mxPutPixel(x, 0, 15);\r
@@ -295,12 +295,18 @@ int main(void)
                        {\r
                                mxPutPixel(0, y, 15);\r
                                mxPutPixel(VW-1, y, 15);\r
-                       }\r
+                       }
+                       \r
+               getch();\r
+               //mxFillBox(xx, yy, QUADWH, QUADWH, 1, 16);
+               //mxFillBox(xx, yy, QUADWH, QUADWH, 2, 16);
+               //mxFillBox(xx, yy, QUADWH, QUADWH, 3, 16);
+               //mxFillBox(xx, yy, QUADWH, QUADWH, 4, 16);\r
                mxSetTextColor(16, OP_TRANS);\r
-                               mxOutText(64, SH-40, "CRAZY!!!!");\r
-                               mxOutText(64, SH-32, "CRAZY!!!!");\r
-                               mxOutText(64, SH-24, "  _  CRAZY!!!!");\r
-                               mxOutText(64, SH-16, "  _    _  CRAZY!!!!");\r
+                               mxOutText(56, SH-40, "CRAZY!!!!]");\r
+                               mxOutText(64, SH-32, "CRAZY!!!!]");\r
+                               mxOutText(64, SH-24, "____  CRAZY!!!!]");\r
+                               mxOutText(56, SH-16, "___    _  CRAZY!!!!]");\r
                getch();\r
                while(!kbhit()){\r
 //                     hScroll(1);\r
@@ -309,18 +315,23 @@ int main(void)
 //                     delay(100);\r
                        //for(int i=0;i<TILEWH;i++){\r
                                ding(key);\r
-                               mxOutText(64, SH-40, "CRAZY!!!!");\r
-                               mxOutText(64, SH-32, "CRAZY!!!!");\r
-                               mxOutText(64, SH-24, "  _  CRAZY!!!!");\r
-                               mxOutText(64, SH-16, "  _    _  CRAZY!!!!");\r
+                               //mxOutText(64, SH-40, "CRAZY!!!!");\r
+                               //mxOutText(64, SH-32, "CRAZY!!!!");\r
+                               //mxOutText(64, SH-24, "  _  CRAZY!!!!");\r
+                               //mxOutText(64, SH-16, "  _    _  CRAZY!!!!");
                                mxPan(xpos,ypos);\r
-                               //mxWaitRetrace();\r
-                               xpos+=xdir;\r
-                               ypos+=ydir;\r
+                               for(int o = 0; o<TILEWH; o++){
+                                       xpos+=xdir;\r
+                                       ypos+=ydir;
+                                       //mxWaitRetrace();
+                               }\r
                                if( (xpos>(VW-SW-1))  || (xpos<1)){xdir=-xdir;}\r
                                if( (ypos>(VH-SH-1)) || (ypos<1)){ydir=-ydir;} // { Hit a boundry, change\r
                        //    direction! }\r
-                       //}\r
+                       }
+                       ch=getch();
+                       if(ch==0x71)break; // 'q'\r
+                       if(ch==0x1b)break; // 'ESC'\r
                }\r
                setvideo(0);\r
                printf("wwww\nResolution: %dx%d\n", SW,SH);\r
index 6c7bbeea1c803b59380cf06e43e5406a5fbb9f24..a6a08f9f4a4a50ad94c3a3ceaea075b1271d2cb3 100644 (file)
@@ -11,7 +11,8 @@
 #define BONK       400\r
 #define LGQ         32\r
 #define HGQ         56\r
-#define TILEWH                   16\r
+#define TILEWH                   16
+#define QUADWH                 TILEWH/4\r
 /*byte SIZE = 80;      // Size =  40 = 1 across, 4 down\r
                     // Size =  80 = 2 across, 2 down\r
                     // Size = 160 = 4 across, 1 down*/\r