]> 4ch.mooo.com Git - 16.git/commitdiff
scroll.exe works again .... hmmm
authorsparky4 <sparky4@cock.li>
Tue, 3 Nov 2015 17:46:52 +0000 (11:46 -0600)
committersparky4 <sparky4@cock.li>
Tue, 3 Nov 2015 17:46:52 +0000 (11:46 -0600)
19 files changed:
16.exe
bakapi.exe
exmmtest.exe
fmemtest.exe
fontgfx.exe
fonttest.exe
inputest.exe
maptest.exe
palettec.exe
palettel.exe
planrpcx.exe
scroll.exe
src/lib/16_in.h
src/lib/mapread.h
src/lib/scroll16.c
src/lib/scroll16.h
src/scroll.c
test.exe
vgmtest.exe

diff --git a/16.exe b/16.exe
index 406511f82a92c3104f0f968390b149bca7bd85c2..4033c177a0651373c1b484038bc483eebf5d5c40 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index 8ee7381cee2526445ec81baa365920b30309bee8..b1c9754f399c66e039338da7ca2287c15458551b 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index 03c0547f89eb204aa638dca477a552d64db6373a..b8d0240f68b300300c2dc10528fcd4697aec76e0 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index fa7f23df26c972dd9cc7aa6d78a5f6c9de17d763..5b900e67ab742ec0f3fe6986c5644af48a2eecab 100755 (executable)
Binary files a/fmemtest.exe and b/fmemtest.exe differ
index a8e981bf3e1a83a855facbce543240d9d29f109a..0726c237b31623fe31e9a890a3fe27ed9fa2db42 100755 (executable)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index 1a6d3db89a471974c403bd099fae358427c3f3b5..f92b49a38b384a472f70f3849b64e2cae12090cb 100755 (executable)
Binary files a/fonttest.exe and b/fonttest.exe differ
index abc012c0c1b603311622362711dadd20824fe9db..57ffb9f2aed0963e35219053a342cfcb27874637 100755 (executable)
Binary files a/inputest.exe and b/inputest.exe differ
index 851aaf1f599ab5ff3d6b6c8fd8f4acd3eaa157d5..d26b9e7ef7b226ef7ca96987cb2aa438ca15dfac 100755 (executable)
Binary files a/maptest.exe and b/maptest.exe differ
index fb1d9e1bd50d26542fe5a9ccefdfcffd5b0e3aab..3d237fce321bc4615a298739638bb2f20ca90411 100755 (executable)
Binary files a/palettec.exe and b/palettec.exe differ
index cdfb293153acee7c323287cedbc0b0662227e1e6..d076fe94daf6b2585ef1f690a5a2de0742c9e137 100755 (executable)
Binary files a/palettel.exe and b/palettel.exe differ
index 9bf6ef2678f736ea8103bd895d5ec4be2478ee6b..d8301b34e9f7c02ff167e3444675279e0d637865 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index ec59343c906dc166d2eb0f75f2242673424d7bcd..f7ce4bec268b0cb6c65e4ba60e39863f316d3487 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index 08ce66fd0184806148f7cf1ce01af118ad696edc..d910f3ecfcbb8fea5ed5500d373f7a3d338f8805 100755 (executable)
@@ -223,7 +223,7 @@ typedef     struct
        word d; //direction!! wwww\r
        word q; //loop variable\r
        word speed;             //player speed!\r
-       planar_buf_t data; //supposively the sprite sheet data\r
+//     planar_buf_t data; //supposively the sprite sheet data\r
 //     bitmap_t data; //supposively the sprite sheet data\r
        sword hp; //hitpoints of the player\r
        int persist_aniframe;    /* gonna be increased to 1 before being used, so 0 is ok for default */\r
index b8062211d456350c31c64400fc4060d158d90e58..b2bf0fd42bedbcc12a484008b5bdd72ccd13225c 100755 (executable)
@@ -17,7 +17,7 @@
 \r
 typedef struct {\r
        bitmap_t huge *btdata;\r
-//     planar_buf_t huge *data;\r
+       planar_buf_t huge *data;\r
        word tileHeight;\r
        word tileWidth;\r
        unsigned int rows;\r
index 14680260ebd0169f008db443e422a4283161caf0..347062bdf75cc058c768b6fd7cfbcd6c2f562b13 100755 (executable)
@@ -60,7 +60,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 24, 32, &player[pn].data);
+                               PBUFSFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 14);
 #endif
@@ -101,7 +101,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 96, 24, 32, &player[pn].data);
+                               PBUFSFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 96, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 10);
 #endif
@@ -142,7 +142,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 64, 24, 32, &player[pn].data);
+                               PBUFSFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 64, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 9);
 #endif
@@ -183,7 +183,7 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        {
                                modexCopyPageRegion(pip[1].page, pip[0].page, player[pn].x-4, player[pn].y-TILEWH, player[pn].x-4, player[pn].y-TILEWH, 24, 32);
 #ifdef SPRITE
-                               PBUFFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 0, 24, 32, &player[pn].data);
+                               PBUFSFUN(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 0, 24, 32, &player[pn].data);
 #else
                                modexClearRegion(pip[1].page, player[pn].x-4, player[pn].y-TILEWH, 24, 32, 12);
 #endif
@@ -488,8 +488,8 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
                                modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)*2);
                                //cannot print number value du to it being slow as bakapee
 #else
-                               //0000modexDrawBmpPBufRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
-                               modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->btdata));
+                               PBUFBFUN(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
+                               //modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->btdata));
 #endif
                        break;
                        case 1:
@@ -661,10 +661,10 @@ void near animatePlayer(map_view_t *pip, player_t *player, word playnum, sword s
        }
 
 #ifdef SPRITE
-#define FRAME1 PBUFFUN(pip[1].page, x, y, 48, dire, 24, 32, &player[playnum].data);
-#define FRAME2 PBUFFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
-#define FRAME3 PBUFFUN(pip[1].page, x, y, 0, dire, 24, 32, &player[playnum].data);
-#define FRAME4 PBUFFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
+#define FRAME1 PBUFSFUN(pip[1].page, x, y, 48, dire, 24, 32, &player[playnum].data);
+#define FRAME2 PBUFSFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
+#define FRAME3 PBUFSFUN(pip[1].page, x, y, 0, dire, 24, 32, &player[playnum].data);
+#define FRAME4 PBUFSFUN(pip[1].page, x, y, 24, dire, 24, 32, &player[playnum].data);
 #else
 #define FRAME1 modexClearRegion(pip[1].page, x, y, 24, 32, 2+dire);
 #define FRAME2 modexClearRegion(pip[1].page, x, y, 24, 32, 1+dire);
index 4ec26e9a91ad1cdf9768f17d178752821649579a..94d3cf828c649082277731cb4f2743ac2dae8cd3 100755 (executable)
 #include "src/lib/timer.h"
 #include "src/lib/wcpu/wcpu.h"
 
-#define SPRITE
-#define PBUFFUN modexDrawBmpPBufRegion
+//#define SPRITE
 //#define TILERENDER
 
+#define PBUFSFUN modexDrawSpritePBufRegion
+#define PBUFBFUN modexDrawBmpPBufRegion
+
 typedef struct {
        map_t *map;
        page_t *page;
index 23307d63ff47179e057430db08d018e347d96f51..eb60019526cd06876b0f75fce37269891a5efd18 100755 (executable)
@@ -39,8 +39,6 @@ bitmap_t p;
 float t;
 sword bakapee;
 
-void main(int argc, char *argv[])
-{
 //     word panswitch=0, panq=1, pand=0;
        word panpagenum=0; //for panning!
        unsigned int i;
@@ -56,6 +54,10 @@ void main(int argc, char *argv[])
        byte *gpal;
        byte *ptr;
        byte *mappalptr;
+
+void main(int argc, char *argv[])
+{
+
        byte *mesg=malloc(sizeof(dword));
 
 
@@ -75,8 +77,6 @@ void main(int argc, char *argv[])
        /* create the map */
        fprintf(stderr, "testing map load~\n");
        loadmap("data/test.map", &map);
-//0000 map.width=0;
-//0000 map.height=0;
        chkmap(&map, 0);
        printf("chkmap ok\n");
        fprintf(stderr, "yay map loaded~~\n");
@@ -94,8 +94,8 @@ void main(int argc, char *argv[])
        //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite
 
        /* create the planar buffer */
-       (player[0].data) = *planar_buf_from_bitmap(&p);
-//0000 printf("planar buffer ok\n");
+////++++       (player[0].data) = *planar_buf_from_bitmap(&p);
+
 #endif
        /*      input!  */
        IN_Startup();
@@ -113,7 +113,7 @@ void main(int argc, char *argv[])
 
        textInit();
        VGAmodeX(bakapee, &gvar);
-       printf("%dx%d\n", gvar.video.page[0].sw, gvar.video.page[0].sh);
+//     printf("%dx%d\n", gvar.video.page[0].sw, gvar.video.page[0].sh);
 #ifdef FADE
        modexPalBlack();        //reset the palette~
 #endif
@@ -145,6 +145,7 @@ void main(int argc, char *argv[])
        mv[0].page = &gvar.video.page[0];
        gvar.video.page[1] = modexNextPage(mv[0].page);
        mv[1].page = &gvar.video.page[1];
+
        gvar.video.page[2] = modexNextPageFlexibleSize(mv[1].page, gvar.video.page[0].sw, gvar.video.page[0].sh);       //(352*176)+1024 is the remaining amount of memory left wwww
        //gvar.video.page[2] = modexNextPage0(mv2.page, 320, 192);      //(352*176)+1024 is the remaining amount of memory left wwww
        mv[2].page = &gvar.video.page[2];
@@ -153,12 +154,12 @@ void main(int argc, char *argv[])
        bg = &mv[0];
        spri = &mv[1];
        mask = &mv[2];
-
+//IN_Ack();
 //TODO: LOAD map data and position the map in the middle of the screen if smaller then screen
        mapGoTo(bg, 0, 0);
        mapGoTo(spri, 0, 0);
        //mapGoTo(mask, 0, 0);
-
+//IN_Ack();
        //TODO: put player in starting position of spot
        //default player position on the viewable map
        player[0].tx = bg->tx + bg->page->tilemidposscreenx;
@@ -185,15 +186,16 @@ void main(int argc, char *argv[])
        npc0.q=1;
        npc0.d=0;
        modexDrawSpriteRegion(spri->page, npc0.x-4, npc0.y-TILEWH, 24, 64, 24, 32, &npctmp);*/
+IN_Ack();
        modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height);
-#ifdef SPRITE
+#ifndef        SPRITE
        modexClearRegion(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 32, 15);
 #else
-       modexDrawSpritePBufRegion(spri->page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, &player[0].data);
+       PBUFSFUN(spri->page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, &player[0].data);
 #endif
-
+IN_Ack();
        modexShowPage(spri->page);
-       modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 1);
+       //modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 1);
 #ifdef MODEX
 #ifdef FADE
        modexFadeOn(4, gpal);
index 7f1b675fbf73e66ce5baa6896ef82bc81fd32922..c9ba9e3b95dea00538e0dd9ecac4db7046a1cc66 100755 (executable)
Binary files a/test.exe and b/test.exe differ
index e2a5d709a9a6c8199d937fdc392ec2bd89cd577c..b63d956e5782293a043bb75aa18955d15f26e099 100755 (executable)
Binary files a/vgmtest.exe and b/vgmtest.exe differ