openfiles: /dos/z/16/doc/project.txt:138:0:0:
openfiles: /dos/z/16/src/palettec.c:179:0:0:
openfiles: /dos/z/16/src/pcxtest.c:141:0:0:
-openfiles: /dos/z/16/src/scroll.c:20776:19775:0:
+openfiles: /dos/z/16/src/scroll.c:22998:22397:1:
openfiles: /dos/z/16/src/fmemtest.c:116:0:0:
-openfiles: /dos/z/16/src/emmtest.c:732:0:0:
+openfiles: /dos/z/16/src/emmtest.c:439:0:0:
openfiles: /dos/z/16/src/emsdump.c:456:0:0:
openfiles: /dos/z/16/src/maptest.c:463:0:0:
openfiles: /dos/z/16/src/maptest0.c:366:0:0:
openfiles: /dos/z/16/src/test.c:0:0:0:
openfiles: /dos/z/16/src/test2.c:0:0:0:
-openfiles: /dos/z/16/src/lib/modex16.c:2794:2497:1:
-openfiles: /dos/z/16/src/lib/modex16.h:1062:586:0:
+openfiles: /dos/z/16/src/lib/modex16.c:2760:2448:0:
+openfiles: /dos/z/16/src/lib/modex16.h:1833:866:0:
openfiles: /dos/z/16/src/lib/planar.h:131:0:0:
openfiles: /dos/z/16/src/lib/PLANAR.C:0:0:0:
openfiles: /dos/z/16/src/lib/bitmap.c:1152:604:0:
openfiles: /dos/z/16/src/lib/bitmap.h:257:0:0:
-openfiles: /dos/z/16/src/lib/dos_kb.c:3264:2448:0:
+openfiles: /dos/z/16/src/lib/dos_kb.c:3264:2407:0:
openfiles: /dos/z/16/src/lib/dos_kb.h:0:0:0:
openfiles: /dos/z/16/src/lib/mapread.c:2265:1988:0:
openfiles: /dos/z/16/src/lib/mapread.h:584:0:0:
-openfiles: /dos/z/16/src/lib/fmapread.c:5968:4626:0:
+openfiles: /dos/z/16/src/lib/fmapread.c:5968:4541:0:
openfiles: /dos/z/16/src/lib/fmapread.h:436:0:0:
openfiles: /dos/z/16/src/lib/exmm/memory.c:308:99:0:
openfiles: /dos/z/16/src/lib/exmm/memory.h:0:0:0:
default_mime_type: text/plain
e2c.convert_xml: 1
c2e.convert_iso: 0
-opendir: file:///dos/z/16/src/lib
+opendir: file:///dos/z/16/src
wrap_text_default: 0
bookmarks_filename_mode: 1
-ssearch_text: modexShowPage()
+ssearch_text: drawcol
snr_casesens: 0
view_blocks: 1
name: Project 16
recent_files: file:///dos/z/16/src/lib/exmm/x.bat
recent_files: file:///dos/z/16/src/lib/jsmn/jsmn.c
recent_files: file:///dos/z/16/src/lib/jsmn/jsmn.h
-recent_files: file:///dos/z/16/src/scroll.c
+recent_files: file:///dos/z/16/src/lib/modex16.c
recent_files: file:///dos/z/16/doc/project.txt
recent_files: file:///dos/z/16/src/palettec.c
-recent_files: file:///dos/z/16/src/emmtest.c
recent_files: file:///dos/z/16/src/pcxtest.c
recent_files: file:///dos/z/16/src/fmemtest.c
recent_files: file:///dos/z/16/src/emsdump.c
recent_files: file:///dos/z/16/src/maptest.c
-recent_files: file:///dos/z/16/src/maptest0.c
+recent_files: file:///dos/z/16/src/emmtest.c
recent_files: file:///dos/z/16/src/test.c
-recent_files: file:///dos/z/16/src/test2.c
+recent_files: file:///dos/z/16/src/lib/modex16.h
recent_files: file:///dos/z/16/src/lib/planar.h
-recent_files: file:///dos/z/16/src/lib/PLANAR.C
+recent_files: file:///dos/z/16/src/maptest0.c
+recent_files: file:///dos/z/16/src/lib/bitmap.h
recent_files: file:///dos/z/16/src/lib/dos_kb.c
+recent_files: file:///dos/z/16/src/lib/PLANAR.C
recent_files: file:///dos/z/16/src/lib/dos_kb.h
-recent_files: file:///dos/z/16/src/lib/mapread.h
-recent_files: file:///dos/z/16/src/lib/fmapread.h
-recent_files: file:///dos/z/16/src/lib/fmapread.c
+recent_files: file:///dos/z/16/src/test2.c
recent_files: file:///dos/z/16/src/lib/bitmap.c
-recent_files: file:///dos/z/16/src/lib/bitmap.h
recent_files: file:///dos/z/16/src/lib/mapread.c
-recent_files: file:///dos/z/16/src/lib/exmm/emmsize.h
-recent_files: file:///dos/z/16/src/lib/exmm/emmret.h
+recent_files: file:///dos/z/16/src/lib/mapread.h
+recent_files: file:///dos/z/16/src/lib/fmapread.c
recent_files: file:///dos/z/16/src/lib/exmm/memory.c
-recent_files: file:///dos/z/16/src/lib/jsmn/farjsmn.c
+recent_files: file:///dos/z/16/src/lib/fmapread.h
+recent_files: file:///dos/z/16/src/lib/exmm/emmret.h
recent_files: file:///dos/z/16/src/lib/lib_head.h
-recent_files: file:///dos/z/16/src/lib/jsmn/farjsmn.h
-recent_files: file:///dos/z/16/src/lib/exmm/memory.h
+recent_files: file:///dos/z/16/src/lib/types.h
+recent_files: file:///dos/z/16/src/lib/jsmn/farjsmn.c
recent_files: file:///dos/z/16/makefile
+recent_files: file:///dos/z/16/src/lib/exmm/memory.h
+recent_files: file:///dos/z/16/src/lib/jsmn/farjsmn.h
+recent_files: file:///dos/z/16/src/lib/exmm/emmsize.h
recent_files: file:///dos/z/16/src/lib/lib_head.c
-recent_files: file:///dos/z/16/src/lib/types.h
-recent_files: file:///dos/z/16/src/lib/modex16.c
-recent_files: file:///dos/z/16/src/lib/modex16.h
+recent_files: file:///dos/z/16/src/scroll.c
snr_replacetype: 0
-savedir: file:///dos/z/16/src/lib
+savedir: file:///dos/z/16/src
spell_check_default: 1
spell_insert_entities: 0
last_filefilter:
htmlbar_view: 0
spell_lang: en
ssearch_dotmatchall: 0
-searchlist: 0x3C4
-searchlist: SC_INDEX
-searchlist: panswitch
-searchlist: ++++
-searchlist: !!
-searchlist: drawbmp
-searchlist: move
searchlist: next
searchlist: bg
searchlist: newde
searchlist: map
searchlist: screen,
searchlist: modexShowPage()
+searchlist: scrollright
+searchlist: col
+searchlist: dacol
+searchlist: dcol
+searchlist: drcol
+searchlist: dracol
+searchlist: drawcol
autocomplete: 1
outputb_show_all_output: 0
bookmarks_show_mode: 0
word d; //direction\r
bitmap_t data; //supposively the sprite sheet data\r
int hp; //hitpoints of the player\r
-} actor_t;\r
+} actor_t;
+
+typedef struct
+{
+ map_view_t *mv;
+} map_view_db_t;\r
\r
map_t allocMap(int w, int h);\r
void initMap(map_t *map);\r
-void mapScrollRight(map_view_t *mv, byte offset);\r
+void mapScrollRight(map_view_db_t *mvdb, byte offset, word id);\r
void mapScrollLeft(map_view_t *mv, byte offest);\r
void mapScrollUp(map_view_t *mv, byte offset);\r
void mapScrollDown(map_view_t *mv, byte offset);\r
page_t screen, screen2, screen3;\r
map_t map;\r
map_view_t mv, mv2, mv3;\r
- map_view_t *bg, *spri, *mask;//, *tmp;\r
+ map_view_t *bg, *spri, *mask;//, *tmp;
+ map_view_db_t pgid[4];
byte *dpal, *gpal;\r
byte *ptr;\r
byte *mappalptr;\r
/* set up paging */\r
bg = &mv;\r
spri = &mv2;\r
- mask = &mv3;\r
+ mask = &mv3;
+ pgid[0].mv = &mv;
+ pgid[1].mv = &mv2;
+ pgid[2].mv = &mv3;\r
\r
//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen\r
mapGoTo(bg, 0, 0);\r
INC_PER_FRAME;\r
//animatePlayer(bg, spri, mask, 1, 1, player.x, player.y, persist_aniframe, q, &ptmp);\r
animatePlayer(bg, spri, player.d-1, 1, player.x, player.y, persist_aniframe, player.q, &ptmp);\r
- mapScrollRight(bg, SPEED);\r
- mapScrollRight(spri, SPEED);\r
+ mapScrollRight(pgid, SPEED, 0);\r
+ mapScrollRight(pgid, SPEED, 1);\r
//mapScrollRight(mask, SPEED);\r
modexShowPage(spri->page);\r
player.q++;\r
\r
\r
void\r
-mapScrollRight(map_view_t *mv, byte offset) {\r
+mapScrollRight(map_view_db_t *mvdb, byte offset, word id) {\r
word x, y; /* coordinate for drawing */\r
\r
/* increment the pixel position and update the page */\r
- mv->page->dx += offset;\r
+ mvdb[id].mv->page->dx += offset;\r
\r
/* check to see if this changes the tile */\r
- if(mv->page->dx >= mv->dxThresh ) {\r
+ if(mvdb[id].mv->page->dx >= mvdb[id].mv->dxThresh ) {\r
/* go forward one tile */\r
- mv->tx++;\r
+ mvdb[id].mv->tx++;\r
/* Snap the origin forward */\r
- mv->page->data += 4;\r
- mv->page->dx = mv->map->tiles->tileWidth;\r
- //}\r
+ mvdb[id].mv->page->data += 4;\r
+ mvdb[id].mv->page->dx = mvdb[id].mv->map->tiles->tileWidth;\r
\r
/* draw the next column */\r
- x= SCREEN_WIDTH + mv->map->tiles->tileWidth;\r
- if(mv->page->id==0)\r
- mapDrawCol(mv, mv->tx + 20 , mv->ty-1, x);\r
+ x= SCREEN_WIDTH + mvdb[id].mv->map->tiles->tileWidth;\r
+ if(mvdb[id].mv->page->id==0)
+ mapDrawCol(mvdb[id].mv, mvdb[id].mv->tx + 20 , mvdb[id].mv->ty-1, x);
+ else
+ modexCopyPageRegion(mvdb[id].mv->page, mvdb[0].mv->page, x, 0, x, 0, mvdb[id].mv->map->tiles->tileWidth, mvdb[id].mv->map->tiles->tileHeight*17);
+// mv[0]\r
}\r
}\r
\r