]> 4ch.mooo.com Git - 16.git/commitdiff
added bakapi4b.c
authorsparky4 <sparky4@cock.li>
Sat, 30 Jan 2016 16:10:39 +0000 (10:10 -0600)
committersparky4 <sparky4@cock.li>
Sat, 30 Jan 2016 16:10:39 +0000 (10:10 -0600)
19 files changed:
16.exe [new file with mode: 0755]
bakapi.exe [new file with mode: 0755]
exmmtest.exe [new file with mode: 0755]
fmemtest.exe [new file with mode: 0755]
fontgfx.exe [new file with mode: 0755]
fonttest.exe [new file with mode: 0755]
inputest.exe [new file with mode: 0755]
maptest.exe [new file with mode: 0755]
palettec.exe [new file with mode: 0755]
palettel.exe [new file with mode: 0755]
pcxtest.exe [new file with mode: 0755]
pcxtest2.exe [new file with mode: 0755]
planrpcx.exe [new file with mode: 0755]
scroll.exe [new file with mode: 0755]
src/bakapi4b.c [new file with mode: 0755]
test.exe [new file with mode: 0755]
test2.exe [new file with mode: 0755]
tesuto.exe [new file with mode: 0755]
vgmtest.exe [new file with mode: 0755]

diff --git a/16.exe b/16.exe
new file mode 100755 (executable)
index 0000000..8b3e6a8
Binary files /dev/null and b/16.exe differ
diff --git a/bakapi.exe b/bakapi.exe
new file mode 100755 (executable)
index 0000000..2f60790
Binary files /dev/null and b/bakapi.exe differ
diff --git a/exmmtest.exe b/exmmtest.exe
new file mode 100755 (executable)
index 0000000..262756e
Binary files /dev/null and b/exmmtest.exe differ
diff --git a/fmemtest.exe b/fmemtest.exe
new file mode 100755 (executable)
index 0000000..a7523ed
Binary files /dev/null and b/fmemtest.exe differ
diff --git a/fontgfx.exe b/fontgfx.exe
new file mode 100755 (executable)
index 0000000..7e1bdaf
Binary files /dev/null and b/fontgfx.exe differ
diff --git a/fonttest.exe b/fonttest.exe
new file mode 100755 (executable)
index 0000000..ceb7318
Binary files /dev/null and b/fonttest.exe differ
diff --git a/inputest.exe b/inputest.exe
new file mode 100755 (executable)
index 0000000..673099c
Binary files /dev/null and b/inputest.exe differ
diff --git a/maptest.exe b/maptest.exe
new file mode 100755 (executable)
index 0000000..0a52987
Binary files /dev/null and b/maptest.exe differ
diff --git a/palettec.exe b/palettec.exe
new file mode 100755 (executable)
index 0000000..e438a8a
Binary files /dev/null and b/palettec.exe differ
diff --git a/palettel.exe b/palettel.exe
new file mode 100755 (executable)
index 0000000..cb51aa0
Binary files /dev/null and b/palettel.exe differ
diff --git a/pcxtest.exe b/pcxtest.exe
new file mode 100755 (executable)
index 0000000..8999887
Binary files /dev/null and b/pcxtest.exe differ
diff --git a/pcxtest2.exe b/pcxtest2.exe
new file mode 100755 (executable)
index 0000000..53eded0
Binary files /dev/null and b/pcxtest2.exe differ
diff --git a/planrpcx.exe b/planrpcx.exe
new file mode 100755 (executable)
index 0000000..6610a1f
Binary files /dev/null and b/planrpcx.exe differ
diff --git a/scroll.exe b/scroll.exe
new file mode 100755 (executable)
index 0000000..6269c7c
Binary files /dev/null and b/scroll.exe differ
diff --git a/src/bakapi4b.c b/src/bakapi4b.c
new file mode 100755 (executable)
index 0000000..6e5c5a1
--- /dev/null
@@ -0,0 +1,89 @@
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You screen.heightould have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
+#include "src/bakapi.h"\r
+\r
+/*\r
+ * BAKAPEE!\r
+ */\r
+global_game_variables_t gvar;\r
+static bakapee_t bakapee;\r
+word key,d,xpos,ypos,xdir,ydir;\r
+int ch=0x0;\r
+\r
+void\r
+main(int argc, char *argvar[])\r
+{\r
+       // main variables values\r
+       d=4; // switch variable\r
+       key=2; // default screensaver number\r
+       xpos=TILEWH*2;\r
+       ypos=TILEWH*2;\r
+       xdir=1;\r
+       ydir=1;\r
+\r
+       VGAmodeX(1, &gvar);\r
+       bakapee.xx = rand()&0%gvar.video.page[0].width;\r
+       bakapee.yy = rand()&0%gvar.video.page[0].height;\r
+       bakapee.gq = 0;\r
+       bakapee.sx=0;\r
+       bakapee.sy=0;\r
+       bakapee.bakax=0;\r
+       bakapee.bakay=0;\r
+       bakapee.coor=0;\r
+\r
+       /* setup camera and screen~ */\r
+       gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);\r
+       gvar.video.page[0].width += (TILEWH*2);\r
+       gvar.video.page[0].height += (TILEWH*2);\r
+       textInit();\r
+\r
+       modexShowPage(&gvar.video.page[0]);\r
+\r
+// screen savers\r
+       while(d>0)      // on!\r
+       {\r
+               if(!kbhit())\r
+               { // conditions of screen saver\r
+                       ding(&gvar.video.page[0], &bakapee, key);\r
+               }\r
+               else\r
+               {\r
+                       VGAmodeX(0, &gvar);\r
+                       // user imput switch\r
+                       fprintf(stderr, "xx=%d  yy=%d\n", bakapee.xx, bakapee.yy);\r
+                       printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch());  // prompt the user\r
+                       scanf("%d", &key);\r
+                       //if(key==3){xx=yy=0;} // crazy screen saver wwww\r
+                       if(key==0){ d=0; }else{\r
+                               gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);\r
+                               gvar.video.page[0].width += (TILEWH*2);\r
+                               gvar.video.page[0].height += (TILEWH*2);\r
+                               VGAmodeX(1, &gvar);\r
+\r
+                               modexShowPage(&gvar.video.page[0]);\r
+                       }\r
+               }\r
+       }\r
+       printf("bakapi ver. 1.04.13.04\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v3\n");\r
+}\r
+//pee!\r
diff --git a/test.exe b/test.exe
new file mode 100755 (executable)
index 0000000..1b6acc8
Binary files /dev/null and b/test.exe differ
diff --git a/test2.exe b/test2.exe
new file mode 100755 (executable)
index 0000000..8390cc9
Binary files /dev/null and b/test2.exe differ
diff --git a/tesuto.exe b/tesuto.exe
new file mode 100755 (executable)
index 0000000..ce4bce3
Binary files /dev/null and b/tesuto.exe differ
diff --git a/vgmtest.exe b/vgmtest.exe
new file mode 100755 (executable)
index 0000000..eaa3469
Binary files /dev/null and b/vgmtest.exe differ