]> 4ch.mooo.com Git - 16.git/blobdiff - 16/dos_gfx.cpp
modified: 16/DOS_GFX.EXE
[16.git] / 16 / dos_gfx.cpp
index e14c5c4930e5c436bf1c2d402f2ad5cda22d8cd0..195624d063b790566ea74dcdfcd6573ae1fe94b6 100644 (file)
@@ -1,5 +1,5 @@
-//DOS Graphics thingy by sparky4 licence GPL v2
-//a special thanks to everyone to release source code for mode X
+//DOS Graphics thingy by sparky4 licence GPL v2\r
+//a special thanks to everyone to release source code for mode X\r
 /*src\lib\*/\r
 #include "dos_gfx.h"\r
 \r
@@ -10,8 +10,8 @@ int gq = LGQ;
 int q = 0;\r
 int bakax = 0, bakay = 0;\r
 cord xx = rand()&0%320, yy = rand()&0%240, sx = 0, sy = 0;\r
-byte coor;
-
+byte coor;\r
+\r
 byte *vga = (byte *) MK_FP(0xA000, 0);\r
 \r
 /*\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,8 +216,8 @@ 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, 0);\r
+//                                     mxPutPixel(xx, yy, coor);\r
                                } \r
 \r
                                if(q==2) mxPutPixel(rand()%SW, rand()%(SH*3), 0);\r
@@ -250,7 +250,7 @@ int main(void)
                d=1; // switch variable\r
                key=4; // default screensaver number\r
                xpos=0;\r
-               ypos=0;
+               ypos=0;\r
                xdir=1;\r
                ydir=1;\r
                setvideo(1);\r
@@ -283,9 +283,9 @@ int main(void)
                        {\r
                                mxPutPixel(0, y, 15);\r
                                mxPutPixel(SW-1, y, 15);\r
-                       }
+                       }\r
 \r
-               getch();
+               getch();\r
                for (int x = 320; x < VW; ++x)\r
                        {\r
                                mxPutPixel(x, 0, 15);\r
@@ -295,7 +295,12 @@ int main(void)
                        {\r
                                mxPutPixel(0, y, 15);\r
                                mxPutPixel(VW-1, y, 15);\r
-                       }
+                       }\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
                getch();\r
                while(!kbhit()){\r
 //                     hScroll(1);\r
@@ -304,6 +309,10 @@ 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
                                mxPan(xpos,ypos);\r
                                //mxWaitRetrace();\r
                                xpos+=xdir;\r