Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DrawMap(){
- //Black out the screen, but not the subscreen,
- Screen->Rectangle(6, 0, 0, 256,176, 0x0F, -1, 0,0,0, true, 128);
- //Create the map object
- Screen->SetRenderTarget(RT_BITMAP1);
- //Black out the bitmap.
- Screen->Rectangle(7, 0, 0, 512,512, 0x0F, -1, 0,0,0, true, 128);
- //CLear the black? -That is what this does. -Z
- Screen->Rectangle(7, 0, 0, 512,512, 0x00, -1, 0,0,0, true, 128);
- //I presume that the whole map is pre-known for this.
- Screen->DrawTile(7,0,0, SamusVars[MINIMAP_TILE],
- SamusVars[MINIMAP_WIDTH], SamusVars[MINIMAP_HEIGHT],
- 2, -1, -1, 0, 0, 0, 0, true, 128);
- //If we visited an area, tack it on?
- if(SamusVars[CURRENT_AREA]==CRATERIA)
- Screen->DrawTile(7,320,0, CRATERIA_EXTRA_TILE,
- 1, 4, 2, -1, -1, 0, 0, 0, 0, true, 128);
- //Draw the map cvomposite to the screen.
- Screen->SetRenderTarget(RT_SCREEN);
- if(GotMap(SamusVars[CURRENT_AREA])) {
- Screen->DrawBitmap(7, RT_BITMAP1, SamusVars[MINIMAP_DRAW_X],
- SamusVars[MINIMAP_DRAW_Y],256,176,
- SamusVars[MAP_DRAW_X], SamusVars[MAP_DRAW_Y], 512, 352, 0, true); }
- else { //Did you intend this else to cover the next three instructions, or only DrawBitmap, as it was doing? -Z
- Screen->DrawBitmap(7, RT_BITMAP1, SamusVars[MINIMAP_DRAW_X]+16,
- SamusVars[MINIMAP_DRAW_Y]+8,8,8,
- SamusVars[MAP_DRAW_X], SamusVars[MAP_DRAW_Y], 16, 16, 0, true);
- Screen->DrawCombo(6, SamusVars[MAP_SAMUS_X], SamusVars[MAP_SAMUS_Y],
- MAP_SAMUS_COMBO, 1, 1, MAP_SAMUS_CSET, -1, -1, 0, 0, 0, 48, 0, true, 128);
- Screen->DrawTile(7, 0, 0, MAP_TILE, 16, 11,
- MAP_TILE_CSET, -1, -1, 0, 0,0, 0, true, 128);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement