From 8564174b559b9e19036392ab7677fe9ee754080c Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 10 Feb 2017 09:18:21 -0600 Subject: [PATCH] cannot think on the pal maker --- TEST.L16 | 19 ++++++++ data/16.pal | Bin 0 -> 768 bytes data/G.PAL | Bin 768 -> 768 bytes data/chikyuu.pcx | Bin 5690 -> 5690 bytes data/spri/CHUBACW0.VRL | Bin 493 -> 493 bytes data/spri/CHUBACW1.VRL | Bin 455 -> 455 bytes data/spri/CHUBACW2.VRL | Bin 479 -> 479 bytes data/spri/CHUBFCW0.VRL | Bin 471 -> 471 bytes data/spri/CHUBFCW1.VRL | Bin 511 -> 511 bytes data/spri/CHUBFCW2.VRL | Bin 474 -> 474 bytes data/spri/CHUBLCW0.VRL | Bin 479 -> 479 bytes data/spri/CHUBLCW1.VRL | Bin 455 -> 455 bytes data/spri/CHUBLCW2.VRL | Bin 493 -> 493 bytes data/spri/CHUBRCW0.VRL | Bin 490 -> 490 bytes data/spri/CHUBRCW1.VRL | Bin 502 -> 502 bytes data/spri/CHUBRCW2.VRL | Bin 492 -> 492 bytes data/spri/chikyuu.pal | Bin 768 -> 768 bytes data/spri/chikyuu.vrl | Bin 5006 -> 0 bytes data/spri/chikyuu.vrs | Bin 6408 -> 6408 bytes src/lib/16_vl.c | 90 -------------------------------------- src/lib/16_vl.h | 1 - src/lib/16_vlpal.c | 97 +++++++++++++++++++++++++++++++++++++++-- src/lib/16_vlpal.h | 11 ++++- src/lib/doslib | 2 +- src/lib/scroll16.c | 8 ++-- src/test.c | 24 +++++++--- 26 files changed, 146 insertions(+), 106 deletions(-) create mode 100755 TEST.L16 create mode 100755 data/16.pal delete mode 100755 data/spri/chikyuu.vrl diff --git a/TEST.L16 b/TEST.L16 new file mode 100755 index 00000000..c0b07783 --- /dev/null +++ b/TEST.L16 @@ -0,0 +1,19 @@ + +qqqqqqqq + +Project 16 test.exe. This is just a test file! +version Feb 10 2017 09:14:32 +VL_PrintmodexmemInfo: + Virtual Screen: 352x272 Tile: 22x17=((Virtual Screen)/16) + Screen: 320x240 Tile: 20x15=((Screen)/16) + Free Video Memory: 767 + page [0]=(a000:0000) size=23936 w=352 h=272 sw=320 sh=240 pi=1408 + [1]=(a000:5d80) size=23936 w=352 h=272 sw=320 sh=240 pi=1408 + [2]=(a000:bb00) size=8448 w=352 h=96 sw=352 sh=96 pi=1408 + [3]=(a000:dc00) size=8448 w=352 h=96 sw=352 sh=96 pi=1408 +tx=1 ty=1 player.d=2 + +==== +0 paloffset= 8 +==== + diff --git a/data/16.pal b/data/16.pal new file mode 100755 index 0000000000000000000000000000000000000000..eaf5208550ce2b2d7a255488e2de6b8d22afb6c8 GIT binary patch literal 768 ccmZQzVEE4f1ph%0gg^v{H3~*UU<8B!05HA_^#A|> literal 0 HcmV?d00001 diff --git a/data/G.PAL b/data/G.PAL index 906897bc70e146ee900bce31986fb34212d9f138..8092380af954e11b165eae773d83f03429619756 100755 GIT binary patch literal 768 zcmZQz00UMTMh;abZao=UHCcIkH8p*6HCZ5GuP>`_Zf0`Dcs!P6Syffj zG`HJLVVi&rct8lGKmpW%YN@ByG#Umii>}KkVwO=#bBxUdu7PlYbdADB?V$Dg));F{ z4CWS3E@j9%Q)!rM*cQBJgaYXS#VhJJv=^0_lE%(pXYuZ`3)yAtBovTJCjep~2TI@_ zxb{FAwK=T*KUA=Oc*lk|8f3YkXXAZAZ83^y{|z z`r6*_{=JL4E+-{*U<%9!gZ1OXW;ERCPu^s_pHIWpJh9EAyDf!ZB~f$AZnfmK(RC~q zuuM4iL*P8d?kEeiVn2~${uZ0{VfUH)ms5N_=lA!sI^PfdKfUhv{}$CB+w6j(C|uY5 E22HbD8vpSXa1Wp2UHz{d6Gmf2|fs8jsP7z@8 zy=syoH7joe8?wZ%_p17@`gL)-##2S3Qiyd5er62rG}-Q)4|vs~igguc>d_4=;I&$tQ@siHG&>BgpOG5} zr5gAT?L3=%C=1{OP|;3x+`y}0F3{}qHI75n=rZ&g{*wUab4`h%uQ!=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C_d2G-h-^s}Y~G8XgdfYeT2zJ13u`_h^S{EbIR}@xguoOW`L+ diff --git a/data/spri/CHUBACW2.VRL b/data/spri/CHUBACW2.VRL index 171c45c34e379e154e8bf1fbe5d2ceb049447afc..bb81e15323f5418c32ade7240e483bdbf23f432b 100755 GIT binary patch literal 479 zcmYL`F;c`Z5CkO8nV_6k=O6P8^t&HkG1a?T+)9l1+)zQuUh@gCn(j zl%OerOWmq=N%O2)l(TyEiH-)3R-}kTYo4?G0|{+k-C+!}>=c%=W=wzwM{t|86lN%O zp9i14{v|peEugF8QGH-oG#+NA`=0T|n=wbVj}PZ&El4WF$r4B(5Y+0Qc*x&6hHHhWH?(t2K6FKY>jtl>hy)$UkXW BBntol literal 479 zcmYL`F-`S8n-EO4h69i}RAD(qyKT`wj1PU436&vZ9|NOM%pH zLyh}v}|ot{18If=ZwN^i_Xw&A*j`rb97D0qeN)WcFpUNx_iea%YVqyk* z4UCOLKAea_M*y@?uiqbrDk;+`499UXJr1D$bySO`?BO9g!+K0-C;pw-l#>7Nk463h DWxpq^ diff --git a/data/spri/CHUBFCW0.VRL b/data/spri/CHUBFCW0.VRL index cfc4f79554e1c9393c107f9fd23196dc1a609241..75d5a6e46e90a41bbe26dff7c9165d175947ab34 100755 GIT binary patch literal 471 zcmYjOOHRcw4D>io+E=<@gZK$}SKtV&*sx;p#C@uV#DX)MnU)lyO0_-X@x(d3zdfH` zUp|g@W9vDl^=}!lT)@U0DqIJLSOZKmY{)BSQ8tA25=_QP$aQ!$7K%{SR~7)Pc~^+B z)~iLa2!c!AGm2;(?kGWwFc+@gok0CnVC(n1RQo?diL*sB=~wAL0EO~L~-A2#t9o%TiBklJ+@C@pKqs+ z_w!K>vc98B|I3JFf~b!b8V{|k21enSSOw2km1 sT7?QGq(l{PB;|T%(~Ia;AOo*Jmo-oa?t(g+e-BD-8ku4LcjEzn0rt8pjQ{`u diff --git a/data/spri/CHUBFCW1.VRL b/data/spri/CHUBFCW1.VRL index f6424ede55bf1bb01be4008120c8ccaa0c1f2cf2..7a08464e1584dc4cd5888cea20f0402687cef1e8 100755 GIT binary patch literal 511 zcmZ9JK~6*=5JbD0hCvcFZq#Vhe+7@=%8e@*6Yuk9yf#+x!;DH;0R5n<=>6x%>;C=i zYq5J9W9c^MTHu#})xHb32HITI2HW-91dp_pNTi6A995;e_m(><7X&U<@Uu~c8U^>KN*q7GpERpWauYN rgra95xc&`%1YW|A=2ym@oGEst*TP1zrtQB*eP`arft{)6{<6_O=9DGb literal 511 zcmZ9J!A`_53`9Lm*>zk6#Dzs5pufN;aN@#=!)pJhEWe$dNtLd^s;VS@@r>i+_t*RJ z^W!wzqqUf;^>5i>D1dq0k8lN|FVYCx*M|g;yrxLxh@2fssYCK8JmJBb&~;#f(nEb2 zm?qzDh|rp-0I)Xd-QXTkI+5dS5hes_924p*OE5M88`0WnFGHy$w{PaMQ{=b3No%>4*;;-k wLqEAA6uk;z(7OT75tQ(=`K@s$XKFjq>yCqBPTPNj`n_?s`@^4K=gUD~0Ndaz*Z=?k diff --git a/data/spri/CHUBFCW2.VRL b/data/spri/CHUBFCW2.VRL index 2b7ce708b88efa53df83f4a24e737bb752e4e5b4..8e26123eab58856677d3aa114d1f53da12b93e6a 100755 GIT binary patch literal 474 zcmYLGF>V7f3=<{U=QD1})S|cm`9h!2DNCjfLH~0|fCBxqOWC~;&#B3Nwh3ARsclNo7^Do80-0NNsN1;x6G(2et7kPg(_hgfK#FG+Ksy>Sa}H6C zk=FGRu+)yLd*1QR3bDjh$1a}a^VAW1|F*_+2rS4Yqiy`3bqDAW>;R&{mOAhtx^4=lV1m@10rOy1nnVcm zv-l*#LvlNCo^TEQnlfUJF5O~>?&2?U2Zr36fJ;ejgVKc|u08so!;L}M-|!#sk1LJ< diff --git a/data/spri/CHUBLCW0.VRL b/data/spri/CHUBLCW0.VRL index 0a10d098a360c1b040198d2b8f57db21d6850414..46ef32415f475260b1715488bcbbb79c6bf152f2 100755 GIT binary patch literal 479 zcmYL`Jx;|i5QIHzJ8}Mi287@h?+P4&iiV2fiTfZ5P945+9%2(Ij%RjfcK7n}{&IPH z{XD0~)Z@ITzc=m_-zk)o+Ws|aEs8u0g~*`@DaC$YIT7NMO99S+D$+WWxt~aa?f`Zw zKT=hjTQeMm6c;ez098kDp8Y8sHs0p0BS)i;QSL4If|p5=~#=s`+x|9+v`}ULJQn) zc*GjDAT&?#Mj=#UKpuVl6y-!OG&cd+U7rp^T`}O4$rpz$mSmm5yTN68_}?Fk`~^rE BBntol literal 479 zcmYL`!A`_53`8?=wwp99>;;5i5Bm#z0w*qXzde7v zzI{Jd?SCk0Dbtc6EChVa40?soY!?5u{$1F$h3j_jv7*vS! zIh?|bvxmQ@9xM_TR=-sn*g0=gfQMSd0J2?_|aQ2mr*MnOlR zl2Vjnq4-l2D725QF+dx;31@$yYNFtsqIF+dYfwv*MlgSsrbuYyXlox(isYMhYW$5G zlHOm}YJ_`fF>_5;ewBX9r! literal 455 zcmYL`%}&EG5QM$9W7dvC47xKDhbD5n>c2&dzvtyuMz(KdxV& zKj&}?6Xy~Bo^mh;7S?eq*0OoswpJ^ZIv)9*ET7sML=)lTn9NxU)BziSSt#R_yy2i< zv9c1@)xt8Kqe!u7_ZHFfGU+^Cqx)px6Prq0d+$isE{|a2E#fH=9?h+!jAWfIme@1i zIYHYKP(UKZ?B6@(y$`NNzL9~(cFPvAV?q^137JrgR31jPy`t$pjly*24IKaPi3|G$fG8(N diff --git a/data/spri/CHUBLCW2.VRL b/data/spri/CHUBLCW2.VRL index 7d92a3da006f052a6f327cd65284afc6975dead9..7b791e8a2af97e9849ef3e4cb9f4675f66ccb2e1 100755 GIT binary patch literal 493 zcmYL`OHRZv5JbD$cH;a7*dW9RX|BK#Sg~QnV#Ix-;o9M~4WboUieFW`+`fK(yk6hm zzApA;tuBZCeSR;$nagDL*hj5do`xY)$t6HK9*R7QUr#wh^=)#iGC$53kVe76rZTT8 zsueD{=b;IjJAubKs}!m86g&j%Mi=;4;0U7sGo)bzm91qf9U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#YptMoHbDnX~uYpIJI{-`)Rv%J<&8_y6Ah|Ns93m5qYY J5Ey15005#&75@ML literal 768 zcmZXSF=!J}9L7H|NQDj=3hi)1kPI0DX2_5sONJmBZnz=H4W(4Mp~HcPo|4i!yy1oj zK^&ruaNrFQf^-Na!qHxb3>6N!p@KuP83G0jB`Qk9D}26dp$Nh^yzl=W@BRMY|Ght) z03bQqvAO@4r-uipr#r#tYs>eq-+XZ+??13#?!4N6_~e}O*fzpWwOw9Wm+QG0Qiw!> zATLc2xNODHICTYPDXk8-`)q zw&OURPN&!F`Mw{9;b=6P&1Mo?1$4jy9KZzzKm^E^5?V!Ju}Dp$X|ma*=P?M>Eb2L! zML1=+H4Jn_1}0Y08e0lGMRqmzO$H7lkE1}XLDyhyz!7lU80;cC!elHHlTsKL8Ec%I zj2*@v;{Xy!rqcjgKo{_VV_=#9DO5@<)~Q)En{>MLh73@tK-Xbea2&WU1_MM9CKGwP z&e&$$BwfZn8ImXR)l3C>9VH7@2bzo30X8Do69_6T7F}vRnm(H$y-y6rG6o4`Ak{#s zg_Hyeu7H#*i)Cu7G#hL_r`Ka}#4OYTj7l<*j*h;8(88nvii>#K7xC;~#1ncv30Q-= zhI=+PpW@kTym^O%5BNC7^vm+u*IVDtZvXhc_Uq@P`R~@BxO>ik86XdoQmNYFLVYQ{ zo>{SS+3ix^sg^pr+A~*uVTYaOsPE09fYVVXgK`;~3PWFL7>g})$!jQs?OY&AM=dpK mub*`7albVkcIU@Kc|IBXe|o#M^>0!Bu{(D+_xAQo)BFp{F>t&9 diff --git a/data/spri/chikyuu.vrl b/data/spri/chikyuu.vrl deleted file mode 100755 index e640b6cc349e9e3401de4f4994cab29ed29059f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5006 zcmbW5%Wm6N5Qfi?6iJDa9ixerSibZPif+2iJV-fsDE z+f^H@b=kJ?FIH@Nf3;iDj!YhjP}XBEpTi?z!SB<*a)2-LVqK+_U}O-jgH+!y_uuuK77No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 @@ modexPalOverscan(word col) outp(PAL_DATA_REG, col); } -//color checker~ -//i want to make another vesion that checks the palette when the palette is being appened~ -void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/) -{ - byte *pal; - word zz=0; - pal = modexNewPal(); - modexPalSave(pal); - //printf("q: %02d\n", (*q)); - printf("chkcolor start~\n"); - printf("1 (*z): %d\n", (*z)/3); - printf("1 (*i): %d\n", (*i)/3); -// printf("1 offset of color in palette (*q): %d\n", (*q)/3); - printf("wwwwwwwwwwwwwwww\n"); - //check palette for dups - for(; (*z)data; diff --git a/src/lib/16_vl.h b/src/lib/16_vl.h index f375d1ff..49457d2b 100755 --- a/src/lib/16_vl.h +++ b/src/lib/16_vl.h @@ -135,7 +135,6 @@ void modexPalWhite(); void modexPalUpdate(byte *p); void modexPalUpdate0(byte *p); void modexPalOverscan(word col); -void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); void modexputPixel(page_t *page, int x, int y, byte color); byte modexgetPixel(page_t *page, int x, int y); diff --git a/src/lib/16_vlpal.c b/src/lib/16_vlpal.c index d6e92a8c..ab0464ca 100755 --- a/src/lib/16_vlpal.c +++ b/src/lib/16_vlpal.c @@ -22,9 +22,100 @@ #include "src/lib/16_vlpal.h" -void VL_palette(bitmap_t *bmp, word *i, word qp, word aqoffset) +//color checker~ +//i want to make another vesion that checks the palette when the palette is being appened~ +void modexchkcolor(imgtestpal_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/) { - byte *p = bmp->palette; + byte *pal; + word zz=0; + pal = modexNewPal(); + modexPalSave(pal); + //printf("q: %02d\n", (*q)); + printf("chkcolor start~\n"); + printf("1 (*z): %d\n", (*z)/3); + printf("1 (*i): %d\n", (*i)/3); +// printf("1 offset of color in palette (*q): %d\n", (*q)/3); + printf("wwwwwwwwwwwwwwww\n"); + //check palette for dups + for(; (*z)palette; word w=0; word q=0; word qq=0; @@ -183,7 +274,7 @@ aqpee: //printf(" aa=%02d\n", aa); //update the palette~ - VL_palette(bmp, &pp, aq, aqoffset); + VL_palette(bmp, p, &pp, aq, aqoffset); (*i)=pp; if(aqdx); modexp /* the position within the map array */ i=ty * mv->map->width + tx; for( mv->dx=poopoffset; mv->dx<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; mv->dx+=mv->map->tiles->tileWidth, tx++) { - if(i>=0) /* we are in the map, so copy away! */ + if(i>=0) mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, mv->dx, y); i++; /* next! */ } -//if(pagedelayrendermap) delay(200); +if(pagedelayrendermap) delay(200); } void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *player, word poopoffset) @@ -631,11 +631,11 @@ if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv->dy); modexp /* We'll copy all of the columns in the screen, i + 1 row above and one below */ for( mv->dy=poopoffset; mv->dy<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height; mv->dy+=mv->map->tiles->tileHeight, ty++) { - if(i>=0) /* we are in the map, so copy away! */ + if(i>=0) mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, mv->dy); i += mv->map->width; } -//if(pagedelayrendermap) delay(200); +if(pagedelayrendermap) delay(200); } void mapDrawWRow(map_view_t *mv, int tx, int ty, word y) diff --git a/src/test.c b/src/test.c index 2f4fd6b5..e5d503de 100755 --- a/src/test.c +++ b/src/test.c @@ -22,6 +22,7 @@ #include #include "src/lib/16_vl.h" +#include "src/lib/16_vlpal.h" #include "src/lib/16_in.h" #include "src/lib/scroll16.h" @@ -32,6 +33,7 @@ static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ void main(int argc, char *argv[]) { + static word paloffset=0; static global_game_variables_t gvar; static player_t player[MaxPlayers]; @@ -41,6 +43,10 @@ void main(int argc, char *argv[]) int i, j; word startclk, endclk; word k; + + imgtestpal_t bmp1, bmp2; + bmp1.width=bmp2.width= 40; + bmp1.width=bmp2.height= 30; //====byte *pal, *pal2; //====word colo=LGQ; @@ -89,6 +95,9 @@ void main(int argc, char *argv[]) //====modexPalBlack(); /* load our palette */ + VL_LoadPalFile("data/16.pal", &gvar.video.palette); + bmp1.offset=(paloffset/3); + VL_palette(&bmp1, &gvar.video.palette, &paloffset, 0, 0); //====modexLoadPalFile("data/default.pal", &pal2); /* overscan show */ @@ -111,13 +120,13 @@ void main(int argc, char *argv[]) modexShowPage(&gvar.video.page[0]);*/ - modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 15); - modexClearRegion(&gvar.video.page[0], 16, 16, gvar.video.page[0].sw, gvar.video.page[0].sh, 128); - modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 42); - modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 128); + modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 1); + modexClearRegion(&gvar.video.page[0], 16, 16, gvar.video.page[0].sw, gvar.video.page[0].sh, 2); + modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 3); + modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 2); modexCopyPageRegion(&gvar.video.page[1], &gvar.video.page[0], 0, 0, 0, 0, gvar.video.page[0].width, gvar.video.page[0].height); - modexClearRegion(&gvar.video.page[2], 0, 0, gvar.video.page[2].sw, gvar.video.page[2].sh, 47); - modexClearRegion(&gvar.video.page[3], 0, 0, gvar.video.page[3].sw, gvar.video.page[3].sh, 45); + modexClearRegion(&gvar.video.page[2], 0, 0, gvar.video.page[2].sw, gvar.video.page[2].sh, 4); + modexClearRegion(&gvar.video.page[3], 0, 0, gvar.video.page[3].sw, gvar.video.page[3].sh, 6); /* fade in */ @@ -204,6 +213,9 @@ void main(int argc, char *argv[]) printf("version %s\n", VERSION); VL_PrintmodexmemInfo(&gvar.video); printf("tx=%d ", mv[gvar.video.sp].tx); printf("ty=%d ", mv[gvar.video.sp].ty); printf("player.d=%d\n", player[0].enti.d); + printf("\n====\n"); + printf("0 paloffset= %d\n", paloffset/3); + printf("====\n\n"); //IN_Shutdown(); //====modexPalBlack(); //====modexFadeOn(1, pal); -- 2.39.5