}
}*/
-void mapScrollRight(map_view_t *mv, player_t *player, word id, word plid)
+void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid)
{
word x, y; /* coordinate for drawing */
}
-void mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid)
+void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid)
{
word x, y; /* coordinate for drawing */
}
-void mapScrollUp(map_view_t *mv, player_t *player, word id, word plid)
+void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid)
{
word x, y; /* coordinate for drawing */
//}
}
-void mapScrollDown(map_view_t *mv, player_t *player, word id, word plid)
+void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid)
{
word x, y; /* coordinate for drawing */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 2, 3, 4 };*/
//check for failed to load map
- if((map->width == map->height == 0) || (q>0))
+ if((map->width == map->height == 0) && (q>0))
{
//initiate a null map!
map->width=MAPW;///2;
map->tiles->tileWidth = 16;
map->tiles->rows = 1;
map->tiles->cols = 1;
-#ifndef TILESPRITE
map->tiles->debug_text = true;
-#else
- map->tiles->debug_text = false;
-#endif
}
+ else map->tiles->debug_text = false;
return 0;
}
}
-void
+void near
mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
{
word rx;
switch(t->debug_text)
{
case 0:
+#ifndef SPRITE
+ modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)*2);
+ //cannot print number value du to it being slow as bakapee
+#else
modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
+#endif
break;
case 1:
modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, (t->debug_data[i])+1);
}
}
-void mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *p, word poopoffset)
+void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *p, word poopoffset)
{
word x;
int i;
}
}
-void mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *p, word poopoffset)
+void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *p, word poopoffset)
{
int y;
int i;
//}
}*/
-void animatePlayer(map_view_t *pip, player_t *player, word playnum, sword scrollswitch)
+void near animatePlayer(map_view_t *pip, player_t *player, word playnum, sword scrollswitch)
{
sword x = player[playnum].x;
sword y = player[playnum].y;
//modexClearRegion(top->page, 66, 66, 2, 40, 0);
//modexCopyPageRegion(dest->page, top->page, 66, 66, 66, 66, 2, 40);
//turn this off if XT
- //XTif(detectcpu() > 0)
+ if(detectcpu() > 0)
modexWaitBorder();
}