Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MayDayGamePlay
- {
- class Map
- {
- private char[,] _map;
- public char [,]CurrentMap
- {
- get { return _map; }
- }
- public Map(char[,]TimeMap)
- {
- _map = TimeMap;
- }
- public void MapOverlay()
- {
- Console.SetCursorPosition(0, 0);
- for (int i = 0; i < _map.GetLength(0); i++)
- {
- Console.SetCursorPosition(Console.WindowWidth-_map.GetLength(1)-1, i);
- for (int j = 0; j < _map.GetLength(1); j++)
- {
- Console.Write(_map[i, j]);
- }
- Console.WriteLine();
- }
- }
- public void NPSandHeroOverlay(int coorX, int coorY, char symbol)
- {
- Console.SetCursorPosition(0, 0);
- for (int i = 0; i < _map.GetLength(0); i++)
- {
- Console.SetCursorPosition(Console.WindowWidth - _map.GetLength(1) - 1, i);
- for (int j = 0; j < _map.GetLength(1); j++)
- {
- if( coorX==i&&coorY==j)
- {
- Console.Write(symbol);
- break;
- }
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement