Beispiel #1
0
        private void DrawCurrentRoom()
        {
            Rectangle currentRoomRectangle = MiniMapConstants.CalculatePos((int)game.RoomHandler.currentRoom.X, (int)game.RoomHandler.currentRoom.Y, MiniMapConstants.Width, MiniMapConstants.Height);

            currentRoomRectangle.X    += (MiniMapConstants.Width - MiniMapConstants.Height) / 2;
            currentRoomRectangle.Width = MiniMapConstants.Height;
            HUDUtilities.DrawRectangle(game, currentRoomRectangle, MiniMapConstants.CurrentRoomColor, offsetX, offsetY, HUDUtilities.MinimapCurrentRoomLayer);
        }
Beispiel #2
0
        private void DrawMap()
        {
            int level = (int)game.RoomHandler.currentRoom.Z / 2;

            foreach (Rectangle rec in MiniMapConstants.GetRoomLayout(level))
            {
                HUDUtilities.DrawRectangle(game, rec, MiniMapConstants.RoomColor, offsetX, offsetY, HUDUtilities.MinimapLayer);
            }
        }
Beispiel #3
0
        private void DrawTriforce()
        {
            int       currentZ          = (int)game.RoomHandler.currentRoom.Z / 2;
            Rectangle triforceRectangle = MiniMapConstants.CalculatePos((int)MiniMapConstants.TriforcePos[currentZ].X, (int)MiniMapConstants.TriforcePos[currentZ].Y, MiniMapConstants.Width, MiniMapConstants.Height);

            triforceRectangle.X    += (MiniMapConstants.Width - MiniMapConstants.Height) / 2;
            triforceRectangle.Width = MiniMapConstants.Height;
            if (colorRed)
            {
                HUDUtilities.DrawRectangle(game, triforceRectangle, MiniMapConstants.TriforceRed, offsetX, offsetY, HUDUtilities.MinimapTriforceLayer);
            }
            else
            {
                HUDUtilities.DrawRectangle(game, triforceRectangle, MiniMapConstants.TriforceGreen, offsetX, offsetY, HUDUtilities.MinimapTriforceLayer);
            }
        }
Beispiel #4
0
 public void DrawMapCover()
 {
     HUDUtilities.DrawRectangle(game, mapCover, Color.Black, offsetX, offsetY, HUDUtilities.MapCoverLayer);
 }
Beispiel #5
0
 private void DrawBlackBackground()
 {
     HUDUtilities.DrawRectangle(game, new Rectangle(0 - backgroundOffsetX, 0 - backgroundOffsetY, DimensionConstants.OriginalWindowWidth, DimensionConstants.OriginalWindowHeight), Color.Black, backgroundOffsetX, backgroundOffsetY, HUDUtilities.BackgroundLayer);
 }
Beispiel #6
0
        private void DrawCurrentRoom()
        {
            Rectangle destination = OrangeMapConstants.CalculatePos(game.RoomHandler.currentRoom, OrangeMapConstants.CurrentRoomSize, scaledMapWidth, scaledMapHeight);

            HUDUtilities.DrawRectangle(game, destination, OrangeMapConstants.CurrentRoomColor, offsetX, offsetY, HUDUtilities.OrangeMapCurrentRoomLayer);
        }