wwww
Revision | 56bcf103bed55fa9f8a4b21d523ced253263efe3 (tree) |
---|---|
Time | 2016-06-10 01:35:38 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
whent back to copy page wwww
@@ -0,0 +1,28 @@ | ||
1 | +WARNING: Failed to initialize DEBUG output | |
2 | +starting timer ok | |
3 | +index=4096 | |
4 | +chkmap ok Project 16 scroll.exe. This is just a test file! | |
5 | +version Jun 9 2016 11:32:02 | |
6 | +tx: 0 | |
7 | +ty: 0 | |
8 | +player.x: 160 player.y: 128 | |
9 | +player.tx: 10 player.ty: 8 | |
10 | +player.triggx: 10 player.triggy: 9 | |
11 | +player.hp: 4 player.q: 1 player.info.dir: 2 player.d: 2 pdir=0 | |
12 | +tile data value at player trigger position: 0 | |
13 | +Virtual Screen: 352x272 | |
14 | +Screen: 320x240 | |
15 | +virtual tile resolution: 22x17 | |
16 | +tile resolution: 20x15 | |
17 | +middle tile position: 10x8 | |
18 | +video memory remaining: 65535 | |
19 | +page [0]=(a000:0000) size=23936 sw=320 sh=240 width=352 height=272 | |
20 | + [1]=(a000:5d80) size=23936 sw=320 sh=240 width=352 height=272 | |
21 | + [2]=(a000:bb00) size=1024 sw=64 sh=64 width=64 height=64 | |
22 | + [3]=(a000:bf00) size=16640 sw=320 sh=208 width=320 height=208 | |
23 | +gvar.video.p=1 gvar.video.r=0 pageflipflop=1 | |
24 | + | |
25 | +gvar.video.tickclk=1926.703247 | |
26 | +gvar.video.clk=0.000000 | |
27 | + | |
28 | +detected CPU type: 386 or newer |
@@ -603,10 +603,10 @@ void mapGoTo(map_view_t *mv, int tx, int ty) | ||
603 | 603 | mapDrawWRow(&mv[0], tx-1, ty, py); |
604 | 604 | i+=mv->map->width - tx; |
605 | 605 | } |
606 | - //modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height); | |
607 | 606 | /* block copy pattern to where we will draw the sprite */ |
608 | 607 | vga_setup_wm1_block_copy(); |
609 | - _fmemcpy(mv[1].page->data, mv[0].page->data, mv[0].page->pagesize); | |
608 | + //_fmemcpy(mv[1].page->data, mv[0].page->data, mv[0].page->pagesize); | |
609 | + modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height); | |
610 | 610 | /* must restore Write Mode 0/Read Mode 0 for this code to continue drawing normally */ |
611 | 611 | vga_restore_rm0wm0(); |
612 | 612 | modexCopyPageRegion(mv[3].page, mv[!(mv->video->p)].page, 0/**/, 0/**/, 0, 128, 28, 36); |
@@ -792,10 +792,10 @@ void shinku(global_game_variables_t *gv) | ||
792 | 792 | } |
793 | 793 | if(pageflipflop){ |
794 | 794 | if(gv->video.r){ |
795 | - //modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height); | |
796 | 795 | /* block copy pattern to where we will draw the sprite */ |
797 | 796 | vga_setup_wm1_block_copy(); |
798 | - _fmemmove((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize); | |
797 | + //_fmemmove((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize); | |
798 | + modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height); | |
799 | 799 | /* must restore Write Mode 0/Read Mode 0 for this code to continue drawing normally */ |
800 | 800 | vga_restore_rm0wm0(); |
801 | 801 | modexShowPage(&(gv->video.page[gv->video.p])); |
@@ -190,7 +190,8 @@ void main(int argc, char *argv[]) | ||
190 | 190 | //IN_initplayer(&player, 1); |
191 | 191 | |
192 | 192 | #ifndef SPRITE |
193 | - modexClearRegion(mv[1].page, player[0].x, player[0].y-TILEWH, 24, 32, 15); | |
193 | + modexClearRegion(mv[0].page, player[0].x-4, player[0].y-TILEWH, 24, 32, 15); | |
194 | + modexClearRegion(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 32, 15); | |
194 | 195 | #else |
195 | 196 | //PBUFSFUN(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, PLAYERBMPDATA); |
196 | 197 | PBUFSFUN(mv[1].page, player[0].x-4, player[0].y-TILEWH, 24, 64, 24, 32, &pp); |
@@ -184,6 +184,8 @@ void main(int argc, char *argv[]) | ||
184 | 184 | if(IN_KeyDown(2+1)){ pan.pn=1; } |
185 | 185 | if(IN_KeyDown(3+1)){ pan.pn=2; } |
186 | 186 | if(IN_KeyDown(4+1)){ pan.pn=3; } |
187 | + if(IN_KeyDown(12)) modexClearRegion(&gvar.video.page[0], (gvar.video.page[0].width/2)-4, (gvar.video.page[0].height/2)-16, 24, 32, 15); | |
188 | + if(IN_KeyDown(13)) modexClearRegion(&gvar.video.page[1], (gvar.video.page[1].width/2)-4, (gvar.video.page[1].height/2)-16, 24, 32, 15); | |
187 | 189 | if(IN_KeyDown(7)){ |
188 | 190 | for(i=0;i<3;i++) |
189 | 191 | { |