unsigned char *buffer;\r
unsigned int bufsz;\r
int fd;\r
+ //nibble i;\r
char *bakapee1,*bakapee2;\r
\r
boolean anim=1,noanim=0;\r
modexHiganbanaPageSetup(&gvar.video);\r
modexMVSetup(&mv, &map, &pan, &gvar);\r
modexShowPage(&(gvar.video.page[pan.pn]));\r
+// for(i=0;i<gvar.video.num_of_pages;i++)\r
+// {\r
+// mv[i].page = &gvar.video.page[i];\r
+// mv[i].video = &gvar.video;\r
+// mv[i].pan = &pan;\r
+// mv[0].tx = INITTNUM;\r
+// mv[0].ty = INITTNUM;\r
+// }\r
//player[0].tx = INITTNUM; player[0].ty = INITTNUM;\r
//mapinitmapview(mv, player[0].tx, player[0].tx);\r
\r
int persist_aniframe; /* gonna be increased to 1 before being used, so 0 is ok for default */\r
CursorInfo info;\r
ControlType Controls;\r
+//newer vars\r
int dx, dy, delta; //TODO: what is this? ^^\r
} player_t;\r
\r
/*\r
* modex mv setup\r
*/\r
-void modexMVSetup(map_view_t *mv, map_t *map, pan_t *pan, global_game_variables_t *gv)\r
+void modexMVSetup(map_view_t *pip, map_t *map, pan_t *pan, global_game_variables_t *gv)\r
{\r
nibble i;\r
// 1st page\r
- mv[0].page = &gv->video.page[0];\r
- mv[0].map = map;\r
- mv[0].video = &gv->video;\r
- mv[0].pan = pan;\r
+ pip[0].page = &gv->video.page[0];\r
+ pip[0].map = map;\r
+ pip[0].video = &gv->video;\r
+ pip[0].pan = pan;\r
+ modexMVInit(pip, 1, 1);\r
\r
for(i=1;i<gv->video.num_of_pages;i++)\r
{\r
- mv[i].page = &gv->video.page[i];\r
- mv[i].map = mv[0].map;\r
- mv[i].video = mv[0].video;\r
- mv[i].pan = mv[0].pan;\r
+ pip[i].page = &gv->video.page[i];\r
+ pip[i].map = pip[0].map;\r
+ pip[i].video = pip[0].video;\r
+ pip[i].pan = pip[0].pan;\r
+ pip[i].tx = 1;\r
+ pip[i].ty = 1;\r
}\r
}\r
\r
+void modexMVInit(map_view_t *pip, int tx, int ty)\r
+{\r
+ pip[0].tx = tx;\r
+ pip[0].ty = ty;\r
+}\r
+\r
/*map_t\r
allocMap(int w, int h) {\r
map_t result;\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
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 panVmemManual(map_view_t *pip, player_t *player, word pn);\r
-void modexMVSetup(map_view_t *mv, map_t *map, pan_t *pan, global_game_variables_t *gv);\r
+void modexMVSetup(map_view_t *pip, map_t *map, pan_t *pan, global_game_variables_t *gv);\r
+void modexMVInit(map_view_t *pip, int tx, int ty);\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