public void DrawMap() { for (int i = 0; i < HeightUnits; i++) { for (int j = 0; j < WidthUnits; j++) { if (WallTiles.Contains(WidthUnits * i + j)) { MyFoxDraw.AddImage("./Assets/wall.png", 50 * j, 50 * i); } else { MyFoxDraw.AddImage("./Assets/floor.png", 50 * j, 50 * i); } } } }
public void DrawCharacter(Character character) { MyFoxDraw.AddImage(character.ImageSource, ((character.TileNumber % WidthUnits) * 50), ((character.TileNumber / WidthUnits) * 50)); }