#include "src/lib/16render.h"\r
//#include "src/lib/16_map.h" //new map stuff\r
#include "src/lib/16_timer.h"\r
-#include "src/lib/wcpu/wcpu.h"\r
+#include "src/lib/wcpu/16_wcpu.h"\r
\r
#include <hw/cpu/cpu.h>\r
#include <hw/dos/dos.h>\r
word dyThresh; //Threshold for physical tile switch\r
video_t *video; //pointer to game variables of the video\r
pan_t *pan; //pointer the the page panning debug system\r
+//newer vars!\r
int dx, dy, delta, d;\r
} map_view_t;\r
/* Map is presumed to:\r
* should have a sprite too. Map is drawn left-to-right, top-to-bottom.\r
*/\r
\r
-typedef struct\r
-{\r
- map_view_t *mv;\r
-} map_view_db_t;\r
-\r
//for null map!\r
#define MAPW 40\r
#define MAPH 30\r
//map_t allocMap(int w, int h);\r
//void initMap(map_t *map);\r
void walk(map_view_t *pip, player_t *player, word pn);\r
-void panpagemanual(map_view_t *pip, player_t *player, word pn);\r
+void panPageManual(map_view_t *pip, player_t *player, word pn);\r
+void ZC_MVSetup(map_view_t *pip, map_t *map, pan_t *pan, global_game_variables_t *gv);\r
+void ZC_MVInit(map_view_t *pip, int tx, int ty);\r
+void ZC_MVSync(map_view_t *pip);\r
+void ZC_panPageManual(map_view_t *pip, player_t *player, word pn);\r
void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid);\r
void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid);\r
void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid);\r
void near ScrollLeft(map_view_t *mv, player_t *player, word id, word plid);\r
void near ScrollUp(map_view_t *mv, player_t *player, word id, word plid);\r
void near ScrollDown(map_view_t *mv, player_t *player, word id, word plid);\r
+void playerXYpos(int x, int y, player_t *player, map_view_t *pip, nibble pn);\r
sword chkmap(map_t *map, word q);\r
void mapGoTo(map_view_t *mv, int tx, int ty);\r
+void mapinitmapview(map_view_t *mv, int tx, int ty);\r
void near mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y);\r
void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *p, word poopoffset);\r
void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *p, word poopoffset);\r