]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/DOS_GFX.EXE
authorsparky4 <sparky4@4ch.maidlab.jp>
Fri, 13 Jun 2014 20:32:31 +0000 (15:32 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Fri, 13 Jun 2014 20:32:31 +0000 (15:32 -0500)
modified:   16/DOS_GFX.OBJ
modified:   16/Project 16.bfproject
modified:   16/dos_gfx.cpp
modified:   16/scrasm/CONSTANT.INC
modified:   16/scrasm/MAIN.OBJ
modified:   16/scrasm/SCROLL.EXE

16/DOS_GFX.EXE
16/DOS_GFX.OBJ
16/Project 16.bfproject
16/dos_gfx.cpp
16/scrasm/CONSTANT.INC
16/scrasm/MAIN.OBJ
16/scrasm/SCROLL.EXE

index d4df1da3e32f74f72ff89c6c72677496f5b37b9e..ab2b1d783170e06a8374854d46f2d168f5a200eb 100644 (file)
Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ
index f17a0b16baf7f45788d4f3ee34931c1803b59d5c..434c2ba6d919cf7aedc34ae0315965414b31872b 100644 (file)
Binary files a/16/DOS_GFX.OBJ and b/16/DOS_GFX.OBJ differ
index 378d9de2f71482ae54b9eb7c1d9529f1ca433130..cd513451e7090f9304eff7b133f11b484af55d76 100644 (file)
@@ -1,7 +1,7 @@
 c2e.convert_special: 0
 e2c.convert_num: 0
-openfiles: /dos/z/16/16/dos_gfx.cpp:1620:647:1:
-openfiles: /dos/z/16/16/dos_gfx.h:665:373:0:
+openfiles: /dos/z/16/16/dos_gfx.cpp:5831:5436:1:
+openfiles: /dos/z/16/16/dos_gfx.h:665:285:0:
 openfiles: /dos/z/16/16/dos_kb.c:1039:46:0:
 openfiles: /dos/z/16/16/dos_kb.h:23:0:0:
 openfiles: /dos/z/16/16/lib/lib_com.cpp:0:0:0:
@@ -82,23 +82,23 @@ recent_files: file:///dos/z/4x4_16/!/c/TUT10.C
 recent_files: file:///dos/z/16/16/lib/x/MXVS.ASM
 recent_files: file:///dos/z/16/16/lib/x/MAKEFILE
 recent_files: file:///dos/z/16/16/lib/x/MODEX.DEF
-recent_files: file:///dos/z/16/16/dos_gfx.h
 recent_files: file:///dos/z/16/16/dos_gfx.cpp
-recent_files: file:///dos/z/16/16/dos_kb.c
+recent_files: file:///dos/z/16/16/dos_gfx.h
 recent_files: file:///dos/z/16/16/dos_kb.h
+recent_files: file:///dos/z/16/16/dos_kb.c
 recent_files: file:///dos/z/16/16/lib/lib_com.cpp
-recent_files: file:///dos/z/16/16/16.txt
 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/16/lib/x/MODEX.H
-recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS
-recent_files: file:///dos/z/16/16/lib/x/MXBB.ASM
-recent_files: file:///dos/z/16/src/lib/dos_gfx.h
 recent_files: file:///dos/z/4x4_16/modex/DEMO01.PAS
-recent_files: file:///dos/z/16/16/lib/x/MXCR.ASM
-recent_files: file:///dos/z/16/16/lib/intro/lib.c
 recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
+recent_files: file:///dos/z/16/src/lib/dos_gfx.h
+recent_files: file:///dos/z/16/16/lib/x/MXBB.ASM
+recent_files: file:///dos/z/4x4_16/modex/DEMO07.PAS
+recent_files: file:///dos/z/16/16/lib/intro/lib.c
+recent_files: file:///dos/z/16/16/lib/x/MXCR.ASM
 snr_replacetype: 0
 savedir: file:///dos/z/16/16
 spell_check_default: 1
index 52e259db4066d21dfad93766a8770d85208b968c..cbfa2d61702ef04eaa5aeb1dee463d8cdd7a205a 100644 (file)
@@ -19,7 +19,7 @@ byte *vga = (byte *) MK_FP(0xA000, 0);
  * to be included.\r
  */\r
 #define TESTING\r
-//#define TILE\r
+#define TILE\r
 \r
 /////////////////////////////////////////////////////////////////////////////\r
 //                                                                         //\r
@@ -245,7 +245,12 @@ short ding(int q){
                                        #endif\r
                                } \r
 \r
-                               if(q==2) mxPutPixel(rand()%VW, rand()%(VH), 0);\r
+                               if(q==2)
+                               #ifdef TILE
+                                       mxFillBox((rand()*TILEWH)%VW, (rand()*TILEWH)%(VH), TILEWH, TILEWH, 0, OP_SET);
+                               #else
+                                       mxPutPixel(rand()%VW, rand()%(VH), 0);
+                               #endif\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
@@ -272,7 +277,7 @@ int main(void)
                int ch=0x0;\r
                // main variables\r
                d=4; // switch variable\r
-               key=4; // default screensaver number\r
+               key=2; // default screensaver number\r
                xpos=TILEWH*2;\r
                ypos=TILEWH*2;\r
                xdir=1;\r
@@ -299,7 +304,7 @@ int main(void)
                }\r
                //end of screen savers\r
                //doTest();\r
-               for (int x = 0; x < VW; ++x)\r
+/*             for (int x = 0; x < VW; ++x)\r
                        {\r
                                mxPutPixel(x, 0, 15);\r
                                mxPutPixel(x, SH-1, 15);\r
@@ -320,11 +325,11 @@ int main(void)
                                mxPutPixel(VW-1, y, 15);\r
                        }\r
                        \r
-                       getch();\r
+                       getch();*/\r
                        //text box\r
                        mxSetTextColor(10, OP_TRANS); //set font\r
-                       mxBitBlt(xpos, ypos+(TILEWH*12), 320, TILEWH*BUFFMX, 0, BS); //copy background\r
-                       mxFillBox(xpos, ypos+(TILEWH*12), 320, TILEWH*BUFFMX, 0, OP_SET); // background for text box\r
+                       mxBitBlt(xpos, ypos+(TILEWH*12), SW, TILEWH*BUFFMX, 0, BS); //copy background\r
+                       mxFillBox(xpos, ypos+(TILEWH*12), SW, TILEWH*BUFFMX, 0, OP_SET); // background for text box\r
                        //+(QUADWH*6)\r
                        mxOutText(xpos+1, ypos+SH-48, "========================================");\r
                        mxOutText(xpos+1, ypos+SH-40, "|    |Chikyuu:$line1");\r
@@ -334,7 +339,7 @@ int main(void)
                        mxOutText(xpos+1, ypos+SH-8,  "========================================");\r
                        mxFillBox(xpos+QUADWH, ypos+QUADWH+(TILEWH*12), TILEWH*2, TILEWH*2, 9, OP_SET); //portriat~\r
                        getch();\r
-                       mxBitBlt(0, BS, 320, TILEWH*BUFFMX, xpos, ypos+(TILEWH*12)); //copy background\r
+                       mxBitBlt(0, BS, SW, TILEWH*BUFFMX, xpos, ypos+(TILEWH*12)); //copy background\r
                        //mxBitBlt(0, (TILEWH*12)+1, 320, TILEWH*3, 0, 0);\r
                        getch();\r
                while(!kbhit()){\r
@@ -345,17 +350,21 @@ int main(void)
                        //for(int i=0;i<TILEWH;i++){\r
                                \r
                                ding(key);\r
-                               mxPan(xpos,ypos);\r
+                               mxPan(xpos,ypos);
+                               mxBitBlt(xpos, ypos, SW, SH, 0, SH);\r
                                //for(short o = 0; o<TILEWH; o++){\r
                                        xpos+=xdir;\r
                                        ypos+=ydir;\r
                                        //if(ypos==1 || (ypos==(BH-SH-1)))delay(500);
                                        //if((xpos>(VW-SW-1)) || (xpos<1))delay(500);\r
-                                       mxWaitRetrace();\r
+                                       //mxWaitRetrace();
+                                       mxPan(TILEWH*2,TILEWH*2);
+                                       mxBitBlt(0, SH, SW, SH, xpos, ypos);\r
                                //}\r
                                if( (xpos>(VW-SW-1))  || (xpos<1)){xdir=-xdir;}\r
                                if( (ypos>(BH-SH-1)) || (ypos<1)){ydir=-ydir;} // { Hit a boundry, change\r
-                       //    direction! }\r
+                       //    direction! }
+                       \r
                        }\r
                        ch=getch();\r
                        if(ch==0x71)break; // 'q'\r
index 02ce404b37608d3925a1f15e49d7623a6ae0698e..a36b77833b1bb4f2432160a06f1b66fa45fdcf80 100644 (file)
@@ -19,7 +19,7 @@ ALL_DRAW_BITS   EQU     0FF00h+BIT_MASK
 SQUARE_WIDTH    EQU     16\r
 SQUARE_HEIGHT   EQU     16\r
 SCREEN_WIDTH    EQU     320\r
-SCREEN_HEIGHT   EQU     240\r
+SCREEN_HEIGHT   EQU     200\r
 VIRTUAL_WIDTH   EQU     352\r
 VIRTUAL_HEIGHT  EQU     240\r
 \r
@@ -124,4 +124,3 @@ kDELETE         EQU     166
 \r
 kF11            EQU     174\r
 kF12            EQU     176\r
-\1a
\ No newline at end of file
index ff612818dd2a95532fff4a45d6d644adbf8a1b90..bd5cae182d75822452a98fe83020057be39b2233 100644 (file)
Binary files a/16/scrasm/MAIN.OBJ and b/16/scrasm/MAIN.OBJ differ
index 8181acf10f9d8d572a19b978175493810c0e29c9..ac5db0656268ccba9da495eeeb36f3b80c04ebf8 100644 (file)
Binary files a/16/scrasm/SCROLL.EXE and b/16/scrasm/SCROLL.EXE differ