From: sparky4 Date: Sat, 30 Jan 2016 16:10:39 +0000 (-0600) Subject: added bakapi4b.c X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=16a6f300d4840954cf28a400ad41cb58d7cb0b4e added bakapi4b.c --- diff --git a/16.exe b/16.exe new file mode 100755 index 00000000..8b3e6a8b Binary files /dev/null and b/16.exe differ diff --git a/bakapi.exe b/bakapi.exe new file mode 100755 index 00000000..2f607908 Binary files /dev/null and b/bakapi.exe differ diff --git a/exmmtest.exe b/exmmtest.exe new file mode 100755 index 00000000..262756e7 Binary files /dev/null and b/exmmtest.exe differ diff --git a/fmemtest.exe b/fmemtest.exe new file mode 100755 index 00000000..a7523ede Binary files /dev/null and b/fmemtest.exe differ diff --git a/fontgfx.exe b/fontgfx.exe new file mode 100755 index 00000000..7e1bdaf4 Binary files /dev/null and b/fontgfx.exe differ diff --git a/fonttest.exe b/fonttest.exe new file mode 100755 index 00000000..ceb73183 Binary files /dev/null and b/fonttest.exe differ diff --git a/inputest.exe b/inputest.exe new file mode 100755 index 00000000..673099c0 Binary files /dev/null and b/inputest.exe differ diff --git a/maptest.exe b/maptest.exe new file mode 100755 index 00000000..0a529876 Binary files /dev/null and b/maptest.exe differ diff --git a/palettec.exe b/palettec.exe new file mode 100755 index 00000000..e438a8a7 Binary files /dev/null and b/palettec.exe differ diff --git a/palettel.exe b/palettel.exe new file mode 100755 index 00000000..cb51aa04 Binary files /dev/null and b/palettel.exe differ diff --git a/pcxtest.exe b/pcxtest.exe new file mode 100755 index 00000000..89998870 Binary files /dev/null and b/pcxtest.exe differ diff --git a/pcxtest2.exe b/pcxtest2.exe new file mode 100755 index 00000000..53eded0f Binary files /dev/null and b/pcxtest2.exe differ diff --git a/planrpcx.exe b/planrpcx.exe new file mode 100755 index 00000000..6610a1fb Binary files /dev/null and b/planrpcx.exe differ diff --git a/scroll.exe b/scroll.exe new file mode 100755 index 00000000..6269c7c5 Binary files /dev/null and b/scroll.exe differ diff --git a/src/bakapi4b.c b/src/bakapi4b.c new file mode 100755 index 00000000..6e5c5a14 --- /dev/null +++ b/src/bakapi4b.c @@ -0,0 +1,89 @@ +/* Project 16 Source Code~ + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You screen.heightould have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include "src/bakapi.h" + +/* + * BAKAPEE! + */ +global_game_variables_t gvar; +static bakapee_t bakapee; +word key,d,xpos,ypos,xdir,ydir; +int ch=0x0; + +void +main(int argc, char *argvar[]) +{ + // main variables values + d=4; // switch variable + key=2; // default screensaver number + xpos=TILEWH*2; + ypos=TILEWH*2; + xdir=1; + ydir=1; + + VGAmodeX(1, &gvar); + bakapee.xx = rand()&0%gvar.video.page[0].width; + bakapee.yy = rand()&0%gvar.video.page[0].height; + bakapee.gq = 0; + bakapee.sx=0; + bakapee.sy=0; + bakapee.bakax=0; + bakapee.bakay=0; + bakapee.coor=0; + + /* setup camera and screen~ */ + gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); + gvar.video.page[0].width += (TILEWH*2); + gvar.video.page[0].height += (TILEWH*2); + textInit(); + + modexShowPage(&gvar.video.page[0]); + +// screen savers + while(d>0) // on! + { + if(!kbhit()) + { // conditions of screen saver + ding(&gvar.video.page[0], &bakapee, key); + } + else + { + VGAmodeX(0, &gvar); + // user imput switch + fprintf(stderr, "xx=%d yy=%d\n", bakapee.xx, bakapee.yy); + printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch()); // prompt the user + scanf("%d", &key); + //if(key==3){xx=yy=0;} // crazy screen saver wwww + if(key==0){ d=0; }else{ + gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); + gvar.video.page[0].width += (TILEWH*2); + gvar.video.page[0].height += (TILEWH*2); + VGAmodeX(1, &gvar); + + modexShowPage(&gvar.video.page[0]); + } + } + } + printf("bakapi ver. 1.04.13.04\nis made by sparky4i†ƒÖ…j feel free to use it ^^\nLicence: GPL v3\n"); +} +//pee! diff --git a/test.exe b/test.exe new file mode 100755 index 00000000..1b6acc81 Binary files /dev/null and b/test.exe differ diff --git a/test2.exe b/test2.exe new file mode 100755 index 00000000..8390cc9a Binary files /dev/null and b/test2.exe differ diff --git a/tesuto.exe b/tesuto.exe new file mode 100755 index 00000000..ce4bce3c Binary files /dev/null and b/tesuto.exe differ diff --git a/vgmtest.exe b/vgmtest.exe new file mode 100755 index 00000000..eaa3469a Binary files /dev/null and b/vgmtest.exe differ