From c86784110ce81f51ffaa36cb547ce1efe2faef00 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 11 Jan 2017 17:43:50 -0600 Subject: [PATCH] ==== PRE SHOWPAGE TO SHOWMV CONVERSION ==== i am going to work on a really big area of code it will be on the refresh system, the walking/scrolling system, things that use showpage, adding disableing 8087 functions if no 8087 detected, and a bunch of other things i cannot remember off the top of my head because i am BURNT. I need a small break~ --- src/lib/bakapee.c | 66 ++++++++++++++++++++++++++++++++++++++++++++--- src/lib/bakapee.h | 2 ++ src/lib/doslib | 2 +- 3 files changed, 65 insertions(+), 5 deletions(-) diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index ee209e36..3b45f105 100755 --- a/src/lib/bakapee.c +++ b/src/lib/bakapee.c @@ -134,6 +134,35 @@ void dingas(bakapee_t *pee) } } +void dingaso(bakapee_t *pee) +{ + if(pee->gq == BONK) dingu(pee); + if(!pee->bakax) + { + if(pee->tile) + pee->xx-=TILEWH; + else pee->xx--; + } + else + { + if(pee->tile) + pee->xx+=TILEWH; + else pee->xx++; + } + if(!pee->bakay) + { + if(pee->tile) + pee->yy-=TILEWH; + else pee->yy--; + } + else + { + if(pee->tile) + pee->yy+=TILEWH; + else pee->yy++; + } +} + void dingu(bakapee_t *pee) { if(pee->coor < HGQ && pee->coor < LGQ) pee->coor = LGQ; @@ -160,20 +189,45 @@ void dingq(bakapee_t *pee) pee->bakax = rand()%3; pee->bakay = rand()%3; } +void dingqo(bakapee_t *pee) +{ + if(pee->gqgq++; + pee->bakax = rand()%3; pee->bakay = rand()%3; + } + else + { + dingu(pee); + pee->gq = 0; + } + //either one will do wwww --4 + pee->bakax = rand()&0x1; pee->bakay = rand()&0x1; + //pee->bakax = rand()%2; pee->bakay = rand()%2; +} + /*-----------ding-------------*/ void ding(page_t *page, bakapee_t *pee, word q) { - word d3y, tx=0,ty=0; + word tx=0,ty=0;//d3y, //++++ if(q <= 4 && q!=2 && gq == BONK-1) coor = rand()%HGQ; switch(q) { - case 1: + case 1:/* dingq(pee); if(pee->xx==page->sw){pee->bakax=0;} if(pee->xx==0){pee->bakax=1;} if(pee->yy==page->sh){pee->bakay=0;} - if(pee->yy==0){pee->bakay=1;} + if(pee->yy==0){pee->bakay=1;}*/ + dingqo(pee); + dingaso(pee); + dingo(page, pee); + dingpp(page, pee); //plot the pixel/tile + if(pee->tile) + modexClearRegion(page, (rand()*TILEWH)%page->width, (rand()*TILEWH)%(page->height), TILEWH, TILEWH, 0); + else + modexputPixel(page, rand()%page->width, rand()%page->height, 0); break; case 2: dingq(pee); @@ -186,7 +240,7 @@ void ding(page_t *page, bakapee_t *pee, word q) modexputPixel(page, rand()%page->width, rand()%page->height, 0); break; case 3: - dingq(pee); + /*dingq(pee); if(pee->xx!=page->sw||pee->yy!=page->sh) { if(pee->xx==0){pee->bakax=1;pee->bakay=-1;d3y=1;} @@ -215,6 +269,10 @@ void ding(page_t *page, bakapee_t *pee, word q) { pee->xx++; } + dingpp(page, pee); //plot the pixel/tile*/ + dingqo(pee); + dingaso(pee); + dingo(page, pee); dingpp(page, pee); //plot the pixel/tile break; case 4: diff --git a/src/lib/bakapee.h b/src/lib/bakapee.h index 4d3df42c..f734f2e5 100755 --- a/src/lib/bakapee.h +++ b/src/lib/bakapee.h @@ -79,8 +79,10 @@ void ssd(page_t *page, bakapee_t *pee, word svq); void dingpp(page_t *page, bakapee_t *pee); void dingo(page_t *page, bakapee_t *pee); void dingas(bakapee_t *pee); +void dingaso(bakapee_t *pee); void dingu(bakapee_t *pee); void dingq(bakapee_t *pee); +void dingqo(bakapee_t *pee); void ding(page_t *page, bakapee_t *pee, word q); #endif /*__BAKAPEE_H_*/ diff --git a/src/lib/doslib b/src/lib/doslib index 1ccc0621..6c15c4a0 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 1ccc06213f78a316456a66190393574a3d642071 +Subproject commit 6c15c4a0c76d8f7e74137e83d6782c8ad0de8f8b -- 2.39.5