본문 바로가기
프로그래밍

DigDog 전체 스크립트

by HyunS_PG 2020. 5. 7.
반응형

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using System.Collections;
using System.Threading;
 
namespace DigDoc
{
    //화면 크기
    enum Screen
    {
        //화면 전체 크기
        SCREEN_START_X = 0,
        SCREEN_START_Y = 0,
        SCREEN_END_X = 80,
        SCREEN_END_Y = 28,
        //게임 화면 크기
        GAMESCREEN_START_X = 4,
        GAMESCREEN_START_Y = 3,
        GAMESCREEN_END_X = 44,
        GAMESCREEN_END_Y = 24
    }
 
    //광석 체력, 보석 확률
    enum eStone
    {
        concrete_HP = 1000000,  //벽 체력
        iron_HP = 3,            //철 체력
        iron_Chance = 90,       //철광석 나올 확률
        gold_HP = 10,           //금 체력
        gold_Chance = 90,       //금광석 나올 확률
        poison_HP = 5           //오염물질 확률
    }
    
    //탈출구 클래스
    class Escape
    {
        //탈출구 좌표 설정
        public int X { get; set; }
        public int Y { get; set; }
 
        public Escape(int x, int y)
        {
            X = x;
            Y = y;
        }
 
        //탈출구 이미지
        public void Print()
        {
            SetCursorPosition(X, Y);
            BackgroundColor = ConsoleColor.Blue;
            ForegroundColor = ConsoleColor.Yellow;
            Write("☞");
            BackgroundColor = ConsoleColor.Black;
            ForegroundColor = ConsoleColor.White;
        }
    }
 
    //광석 클래스
    class Stone
    {
        public int X { get; set; }      //광석 X좌표
        public int Y { get; set; }      //광석 Y좌표
        public int Max_HP { get; set; } //광석 최대체력
        public int HP { get; set; }     //광석 체력
        public int Chance { get; set; } //보석이 나올 확률
        public int Worth { get; set; }  //보석 값
        public ConsoleColor Color { get; set; } //벽 색깔
        public ConsoleColor Background_Color { get; set; }  //벽에 배경색 있는 버전용
 
        public string[] shaping = { "■""▦""▒""__""  ""◈" };   //광석 애니메이션 이미지와 보석 이미지
 
        public bool isDead;     //광석 부서짐 플래그
        public int death;       //부서졌는지 확인 및 카운트
        public bool gainGem;    //보석을 얻을 때
 
        //광석 클래스 초기화
        public Stone(int x, int y, int max_HP, int chance, ConsoleColor color)
        {
            X = x;
            Y = y;
            Max_HP = max_HP;
            HP = max_HP;
            Color = color;
            Background_Color = ConsoleColor.Black;
            Chance = chance;
            isDead = false;
            gainGem = false;
        }
        //광석 클래스 초기화 (배경색 있는 버전용)
        public Stone(int x, int y, int max_HP, int chance, ConsoleColor fontColor, ConsoleColor backgroundColor)
        {
            X = x;
            Y = y;
            Max_HP = max_HP;
            HP = max_HP;
            Color = fontColor;
            Background_Color = backgroundColor;
            Chance = chance;
            isDead = false;
            death = 0;
            gainGem = false;
        }
 
        //광석을 부수면 지정한 확률로 보석이 생김
        public void RandomGem()
        {
            Random rand = new Random();
 
            if (rand.Next(100+ 1 <= Chance) //(Chance)% 확률로 보석이 생김
            {
                SetCursorPosition(X, Y);
                ForegroundColor = Color;
                Write("◈");
                gainGem = true;          //보석이 떨어졌을 때 획득이 가능해짐
            }
        }
 
        //보석을 얻을 때
        public void GainGem(Player player)
        {
            //보석을 얻을 수 있는지
            if(gainGem)
            {
                //플레이어가 보석위로 올라갔을 때
                if(player.x == X && player.y == Y)
                {
                    switch((int)Color)
                    {
                        //철광석 값
                        case (int)ConsoleColor.DarkGray:
                            player.Money += 3;
                            break;
                        //금광석 값
                        case (int)ConsoleColor.Yellow:
                            player.Money += 20;
                            break;
                    }
 
                    //플레이어 골드 갱신
                    SetCursorPosition((int)Screen.GAMESCREEN_START_X, (int)Screen.GAMESCREEN_END_Y + 2);
                    Write("골드 :       ");
                    SetCursorPosition((int)Screen.GAMESCREEN_START_X, (int)Screen.GAMESCREEN_END_Y + 2);
                    Write($"골드 : {player.Money}");
 
                    gainGem = false;        //한번 얻으면 보석이 사라짐
                }
            }
        }
 
        //광석의 체력에 따라 이미지 변경
        public IEnumerator GetEnumerator()
        {
            if (!isDead)
            {
                //BackgroundColor = Background_Color;       //콘크리트 배경있는 버전용
                ForegroundColor = Color;
 
                //광석 체력이 절반으로 됐을 때 이미지
                if (HP <= Max_HP / 2 && HP > 0)
                    yield return shaping[1];
 
                //광석 체력이 0이하로 됐을 때 이미지
                else if (HP <= 0)
                {
                    yield return shaping[2];
                    System.Threading.Thread.Sleep(200);
                    ForegroundColor = Color;
                    yield return shaping[3];
                    System.Threading.Thread.Sleep(200);
                    yield return shaping[4];
                    isDead = true;
                    death = 1;
                    RandomGem();
                }
                //광석 기본 이미지
                else
                    yield return shaping[0];
                //BackgroundColor = ConsoleColor.Black;     //콘크리트 배경있는 버전용
            }
        }
 
        //플레이어가 광석 타격시 체력 감소
        public void DecreaseHP(int playerAttack)
        {
            HP -= playerAttack;
        }
    }
    
    //곡괭이 클래스
    class Pick
    {
        public int Attack { get; set; }          //곡괭이 공격력
        public int Price { get; set; }           //곡괭이 가격
        public ConsoleColor Color { get; set; }  //곡괭이 색깔
    
        //곡괭이 클래스 초기화
        public Pick(int pick_attack, int pick_price, ConsoleColor pick_color)
        {
            Attack = pick_attack;   //곡괭이 공격력
            Price = pick_price;     //곡괭이 가격
            Color = pick_color;     //곡괭이 색
        }
 
    }
 
    //플레이어 클래스
    class Player
    {
        public int x, y;                      //플레이어 위치
        public int preX, preY;                //플레이어 이전 위치(흔적 지우기 위함)
        public int forwardX, forwardY;        //플레이어 정면(타겟팅) 
        public int preForwardX, preForwardY;  //타겟팅 이전 위치
        public string shape;                  //플레이어 이미지
        public int Attack { get; set; }       //곡괭이에 따른 플레이어 공격력
        public int Money { get; set; }        //소지한 골드
 
        //플레이어 클래스 초기화
        public Player(int x, int y, string shape)
        {
            this.x = x;         //처음 시작 위치
            this.y = y;
            this.shape = shape; //처음 플레이어 이미지
 
            //방향에 따른 플레이어 이미지
            switch (shape)
            {
                case "▲":
                    forwardX = x;
                    forwardY = y - 1;
                    break;
                case "▼":
                    forwardX = x;
                    forwardY = y + 1;
                    break;
                case "◀":
                    forwardX = x - 2;
                    forwardY = y;
                    break;
                case "▶":
                    forwardX = x + 1;
                    forwardY = y;
                    break;
            }
 
            preForwardX = forwardX;
            preForwardY = forwardY;
 
            Money = 0;
        }
 
        //플레이어 공격
        public void Attacking(Stone[] concrete, Stone[] iron, Stone[] gold, Stone[] poison)
        {
            for (int i = 0; i < concrete.Length; i++)
            {
                if (forwardX % 2 == 1)  //광석 오른쪽에 있을 때는 타겟팅 위치가 같을 수 없으므로 x좌표를 -1한다.
                    forwardX--;
                if ((concrete[i].X == forwardX) && (concrete[i].Y == forwardY)) //광석 위치와 타켓팅 위치가 같을 때
                    concrete[i].DecreaseHP(Attack);
            }
            for (int i = 0; i < iron.Length; i++)
            {
                if (forwardX % 2 == 1)  //광석 오른쪽에 있을 때는 타겟팅 위치가 같을 수 없으므로 x좌표를 -1한다.
                    forwardX--;
                if ((iron[i].X == forwardX) && (iron[i].Y == forwardY)) //광석 위치와 타켓팅 위치가 같을 때
                    iron[i].DecreaseHP(Attack);
            }
            for (int i = 0; i < gold.Length; i++)
            {
                if (forwardX % 2 == 1)  //광석 오른쪽에 있을 때는 타겟팅 위치가 같을 수 없으므로 x좌표를 -1한다.
                    forwardX--;
                if ((gold[i].X == forwardX) && (gold[i].Y == forwardY)) //광석 위치와 타켓팅 위치가 같을 때
                    gold[i].DecreaseHP(Attack);
            }
            for (int i = 0; i < poison.Length; i++)
            {
                if (forwardX % 2 == 1)  //광석 오른쪽에 있을 때는 타겟팅 위치가 같을 수 없으므로 x좌표를 -1한다.
                    forwardX--;
                if ((poison[i].X == forwardX) && (poison[i].Y == forwardY)) //광석 위치와 타켓팅 위치가 같을 때
                    poison[i].DecreaseHP(Attack);
            }
        }
 
        //텔레포트 스킬
        public void Teleport(Stone[] concrete, Stone[] iron, Stone[] gold, Stone[] poison)
        {
            int distance = 3;   //텔레포트 최대 거리
            int preDistance;
 
            while (true)
            {
                preDistance = distance;
 
                if (shape == "▲")       //플레이어 이미지(방향)에 따라 순간이동
                {
                    y -= distance;
 
                    forwardX = x;
                    forwardY = y - 1;
                }
                if (shape == "▼")       //플레이어 이미지(방향)에 따라 순간이동
                {
                    y += distance;
 
                    forwardX = x;
                    forwardY = y + 1;
                }
                if (shape == "◀")       //플레이어 이미지(방향)에 따라 순간이동
                {
                    x -= 2 * distance;
                    
                    forwardX = x - 1;
                    forwardY = y;
                }
                if (shape == "▶")       //플레이어 이미지(방향)에 따라 순간이동
                {
                    x += 2 * distance;
 
                    forwardX = x + 2;
                    forwardY = y;
                }
 
                //텔레포트시 플레이어가 게임 화면 밖으로 나가지 않게 하기 위한 조건
                if ((x <= (int)Screen.GAMESCREEN_START_X) || (x >= (int)Screen.GAMESCREEN_END_X) || (y <= (int)Screen.GAMESCREEN_START_Y) || (y >= (int)Screen.GAMESCREEN_END_Y))
                    distance--;
 
                //텔레포트시 플레이어가 광석하고 겹치지 않게 하기 위한 조건
                for (int i = 0; i < concrete.Length; i++)
                {
                    if (!concrete[i].isDead && (x == concrete[i].X) && (y == concrete[i].Y))
                        distance--;
                }
                for (int i = 0; i < iron.Length; i++)
                {
                    if (!iron[i].isDead && (x == iron[i].X) && (y == iron[i].Y))
                        distance--;
                }
                for (int i = 0; i < gold.Length; i++)
                {
                    if (!gold[i].isDead && (x == gold[i].X) && (y == gold[i].Y))
                        distance--;
                }
                for (int i = 0; i < poison.Length; i++)
                {
                    if (!poison[i].isDead && (x == poison[i].X) && (y == poison[i].Y))
                        distance--;
                }
 
                //순간이동 가능할 때 or 앞에 공간이 더이상 없을 때
                if ((preDistance == distance) || (distance <= 0))
                    break;
                //순간이동 불가능할 때
                else
                {
                    x = preX;
                    y = preY;
                    forwardX = preForwardX;
                    forwardY = preForwardY;
 
                    continue;
                }
            }
        }
    }
 
    class Program
    {
        //타이틀 이미지
        static void Title(int titleX, int titleY)
        {
            int titleImgX = titleX + 18;
            int titleImgY = titleY;
 
            //곡괭이 이미지
            for (int i = 0; i < 20; i += 2)
            {
                ForegroundColor = ConsoleColor.DarkRed;
                SetCursorPosition(titleImgX + 16 - i, titleImgY + 1 + i / 2);
                Write("■");
                SetCursorPosition(titleImgX + 18 - i, titleImgY + 2 + i / 2);
                Write("■");
                ForegroundColor = ConsoleColor.Red;
                SetCursorPosition(titleImgX + 18 - i, titleImgY + 1 + i / 2);
                Write("■");
            }
            ForegroundColor = ConsoleColor.DarkRed;
            SetCursorPosition(titleImgX - 2, titleImgY + 11);
            Write("■");
 
            ForegroundColor = ConsoleColor.DarkGray;
            SetCursorPosition(titleImgX, titleImgY);
            Write("    ■■■■■");
            SetCursorPosition(titleImgX, titleImgY + 1);
            Write("  ■");
            ForegroundColor = ConsoleColor.Gray;
            Write("■■■■■");
            ForegroundColor = ConsoleColor.DarkGray;
            Write("■");
            SetCursorPosition(titleImgX, titleImgY + 2);
            Write("    ■■■■");
            ForegroundColor = ConsoleColor.Gray;
            Write("■■");
            SetCursorPosition(titleImgX + 14, titleImgY + 3);
            Write("■■");
            ForegroundColor = ConsoleColor.DarkGray;
            Write("■");
            for(int i = 0; i < 5; i++)
            {
                ForegroundColor = ConsoleColor.DarkGray;
                SetCursorPosition(titleImgX + 16, titleImgY + 4 + i);
                Write("■");
                SetCursorPosition(titleImgX + 20, titleImgY + 4 + i);
                Write("■");
                ForegroundColor = ConsoleColor.Gray;
                SetCursorPosition(titleImgX + 18, titleImgY + 4 + i);
                Write("■");
            }
            ForegroundColor = ConsoleColor.DarkGray;
            SetCursorPosition(titleImgX + 18, titleImgY + 9);
            Write("■");
            
            //D
            ForegroundColor = ConsoleColor.Yellow;
            SetCursorPosition(titleX, titleY + 3);
            Write("■■■");
            SetCursorPosition(titleX, titleY + 4);
            Write("■    ■");
            SetCursorPosition(titleX, titleY + 5);
            Write("■    ■");
            SetCursorPosition(titleX, titleY + 6);
            Write("■    ■");
            SetCursorPosition(titleX, titleY + 7);
            Write("■■■");
 
            //I
            SetCursorPosition(titleX + 10, titleY + 3);
            Write("■■■");
            SetCursorPosition(titleX + 12, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 12, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 12, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 10, titleY + 7);
            Write("■■■");
 
            //G
            SetCursorPosition(titleX + 20, titleY + 3);
            Write("■■■");
            SetCursorPosition(titleX + 18, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 18, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 22, titleY + 5);
            Write("■■");
            SetCursorPosition(titleX + 18, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 24, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 20, titleY + 7);
            Write("■■■");
 
            //D
            SetCursorPosition(titleX + 32, titleY + 3);
            Write("■■■");
            SetCursorPosition(titleX + 32, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 32, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 32, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 32, titleY + 7);
            Write("■■■");
            SetCursorPosition(titleX + 38, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 38, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 38, titleY + 6);
            Write("■");
 
            //O
            SetCursorPosition(titleX + 44, titleY + 3);
            Write("■■");
            SetCursorPosition(titleX + 42, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 48, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 42, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 48, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 42, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 48, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 44, titleY + 7);
            Write("■■");
 
            //C
            SetCursorPosition(titleX + 54, titleY + 3);
            Write("■■■");
            SetCursorPosition(titleX + 52, titleY + 4);
            Write("■");
            SetCursorPosition(titleX + 52, titleY + 5);
            Write("■");
            SetCursorPosition(titleX + 52, titleY + 6);
            Write("■");
            SetCursorPosition(titleX + 54, titleY + 7);
            Write("■■■");
        }
        
        //게임 화면 틀
        static void Frame(int on)
        {
            for(int i = (int)Screen.SCREEN_START_X; i < (int)Screen.SCREEN_END_X; i+=2)
            {
                SetCursorPosition(i, (int)Screen.SCREEN_START_Y);
                Write("- ");
                SetCursorPosition(i, (int)Screen.SCREEN_END_Y);
                Write("- ");
            }
 
            if(on == 1)
            {
                ForegroundColor = ConsoleColor.DarkMagenta;
                for (int i = (int)Screen.GAMESCREEN_START_X; i < (int)Screen.GAMESCREEN_END_X; i+=2)
                {
                    SetCursorPosition(i, (int)Screen.GAMESCREEN_START_Y);
                    Write("■");
                    SetCursorPosition(i, (int)Screen.GAMESCREEN_END_Y);
                    Write("■");
                }
 
                for (int i = (int)Screen.GAMESCREEN_START_Y; i <= (int)Screen.GAMESCREEN_END_Y; i++)
                {
                    SetCursorPosition((int)Screen.GAMESCREEN_START_X, i);
                    Write("■");
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X, i);
                    Write("■");
                }
                ForegroundColor = ConsoleColor.White;
            }
        }
 
        //스테이지 생성
        static void Stage(int stage, ref Player player, Stone[] concrete, Stone[] iron, Stone[] gold, Stone[] poison, ref Escape escape, ref int posion_MaxCount, ref int posion_Count, ref bool teleport_on)
        {
            //--------------------------------------------------------------------------------------------
            //주의! 좌표 범위는 GAMESCREEN_START_X + 1~19 * 2까지 가능, GAMESCREEN_START_Y + 1~20까지 가능
            //--------------------------------------------------------------------------------------------
            switch (stage)
            {
                //스테이지 1
                case 1:
                    for (int i = (int)Screen.GAMESCREEN_START_X + 2; i < (int)Screen.GAMESCREEN_END_X - 1; i++)
                    {
                        for (int j = (int)Screen.GAMESCREEN_START_Y + 1; j < (int)Screen.GAMESCREEN_END_Y; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
 
                    for (int i = 0; i < 160; i++)
                    {
                        concrete[i] = new Stone(0010, ConsoleColor.Black, ConsoleColor.Black);
 
                        if (i < 50)
                        {
                            iron[i] = new Stone(0010, ConsoleColor.Black);
                            gold[i] = new Stone(0010, ConsoleColor.Black);
                        }
                        if (i < 10)
                        {
                            poison[i] = new Stone(0010, ConsoleColor.Black);
                        }
                    }
 
                    player = new Player((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 8"▼");
                    escape = new Escape((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 12);
 
                    for (int i = 0; i < 7; i++)
                    {
                        concrete[i] = new Stone((int)Screen.GAMESCREEN_START_X + (7 + i) * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                        concrete[i + 7= new Stone((int)Screen.GAMESCREEN_START_X + (7 + i) * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                        concrete[i + 14= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 7 + i, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White); 
                        concrete[i + 21= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 7 + i, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    }
 
                    iron[0= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[1= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[2= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[3= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[4= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[5= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[6= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[7= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[8= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[9= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[10= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[11= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
 
                    poison[0= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[1= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    
                    posion_MaxCount = 2;    //없애야하는 오염물질 수
                    posion_Count = 0;       //스테이지 넘어갈 때 0으로 리셋
                    break;
                //스테이지 2
                case 2:
                    for (int i = (int)Screen.GAMESCREEN_START_X + 2; i < (int)Screen.GAMESCREEN_END_X - 1; i++)
                    {
                        for (int j = (int)Screen.GAMESCREEN_START_Y + 1; j < (int)Screen.GAMESCREEN_END_Y; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
 
                    for (int i = 0; i < 160; i++)
                    {
                        concrete[i] = new Stone(0010, ConsoleColor.Black, ConsoleColor.Black);
 
                        if (i < 50)
                        {
                            iron[i] = new Stone(0010, ConsoleColor.Black);
                            gold[i] = new Stone(0010, ConsoleColor.Black);
                        }
                        if (i < 10)
                        {
                            poison[i] = new Stone(0010, ConsoleColor.Black);
                        }
                    }
 
                    player = new Player((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 15"▲");
                    escape = new Escape((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 6);
 
                    for (int i = 0; i < 11; i++)
                    {
                        concrete[i] = new Stone((int)Screen.GAMESCREEN_START_X + (5 + i) * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                        concrete[i + 11= new Stone((int)Screen.GAMESCREEN_START_X + (5 + i) * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                        concrete[i + 22= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 6 + i, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                        concrete[i + 33= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 6 + i, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    }
 
                    concrete[45= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[46= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[47= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[48= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[77= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[49= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[50= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[51= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[52= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[53= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[54= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[55= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[56= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[57= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[58= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[59= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[60= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[61= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[62= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[63= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[64= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[65= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[66= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[67= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[68= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[69= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[70= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[71= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[72= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[73= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[74= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[75= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White);
                    concrete[76= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White);
 
                    iron[0= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[1= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[2= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[3= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[4= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[5= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[6= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    
                    gold[0= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
                    gold[1= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
 
                    poison[0= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[1= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[2= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[3= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.poison_HP, 0, ConsoleColor.Green);
 
                    posion_MaxCount = 4;    //없애야하는 오염물질 수
                    posion_Count = 0;       //스테이지 넘어갈 때 0으로 리셋
                    break;
                //스테이지 3
                case 3:
                    for (int i = (int)Screen.GAMESCREEN_START_X + 2; i < (int)Screen.GAMESCREEN_END_X - 1; i++)
                    {
                        for (int j = (int)Screen.GAMESCREEN_START_Y + 1; j < (int)Screen.GAMESCREEN_END_Y; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
 
                    for (int i = 0; i < 160; i++)
                    {
                        concrete[i] = new Stone(0010, ConsoleColor.Black, ConsoleColor.Black);
 
                        if (i < 50)
                        {
                            iron[i] = new Stone(0010, ConsoleColor.Black);
                            gold[i] = new Stone(0010, ConsoleColor.Black);
                        }
                        if (i < 10)
                        {
                            poison[i] = new Stone(0010, ConsoleColor.Black);
                        }
                    }
 
                    player = new Player((int)Screen.GAMESCREEN_END_X / 2, (int)Screen.GAMESCREEN_END_Y - 1"▲");
                    escape = new Escape((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 1);
 
                    concrete[0= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 1, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[1= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 1, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[2= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[3= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[4= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[5= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[6= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[7= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[8= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[9= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[10= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[11= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[12= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[13= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[14= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[15= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[16= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[17= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[18= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[19= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[20= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[21= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[22= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[23= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[24= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[25= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[26= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[27= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[28= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[29= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[30= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[31= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[32= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[33= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[34= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[35= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[36= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[37= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[38= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[39= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[40= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[41= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[42= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[43= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[44= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[45= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[46= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[47= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[48= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[49= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[50= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[51= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[52= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[53= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[54= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[55= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[56= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[57= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[58= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[59= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[60= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[61= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[62= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[63= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[64= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[65= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[66= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[67= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[68= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[69= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[70= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[71= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[72= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[73= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[74= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[75= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[76= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[77= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[78= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[79= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[80= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[81= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[82= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[83= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[84= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[85= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[86= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[87= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[88= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[89= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[90= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[91= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[92= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[93= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[94= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[95= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[96= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[97= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[98= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[99= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[100= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[101= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[102= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[103= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[104= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[105= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[106= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[107= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[108= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[109= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[110= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[111= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[112= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[113= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 14, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[114= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[115= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[116= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[117= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[118= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[119= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[120= new Stone((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[121= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[122= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[123= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[124= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[125= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[126= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[127= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[128= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[129= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[130= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[131= new Stone((int)Screen.GAMESCREEN_START_X + 8 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[132= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[133= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[134= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[135= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[136= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[137= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[138= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[139= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[140= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[141= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[142= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[143= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[144= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[145= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[146= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[147= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[148= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[149= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[150= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[151= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[152= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[153= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[154= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[155= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[156= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[157= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[158= new Stone((int)Screen.GAMESCREEN_START_X + 7 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
                    concrete[159= new Stone((int)Screen.GAMESCREEN_START_X + 10 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.concrete_HP, 0, ConsoleColor.White, ConsoleColor.White);
 
                    iron[0= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[1= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 2, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[2= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[3= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[4= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[5= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 5, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[6= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 7, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[7= new Stone((int)Screen.GAMESCREEN_START_X + 4 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[8= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[9= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 11, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[10= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[11= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 12, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[12= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[13= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 13, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[14= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[15= new Stone((int)Screen.GAMESCREEN_START_X + 3 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[16= new Stone((int)Screen.GAMESCREEN_START_X + 18 * 2, (int)Screen.GAMESCREEN_START_Y + 16, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[17= new Stone((int)Screen.GAMESCREEN_START_X + 5 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[18= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 17, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[19= new Stone((int)Screen.GAMESCREEN_START_X + 11 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[20= new Stone((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
                    iron[21= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.iron_HP, (int)eStone.iron_Chance, ConsoleColor.DarkGray);
 
                    gold[0= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 4, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
                    gold[1= new Stone((int)Screen.GAMESCREEN_START_X + 12 * 2, (int)Screen.GAMESCREEN_START_Y + 6, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
                    gold[2= new Stone((int)Screen.GAMESCREEN_START_X + 14 * 2, (int)Screen.GAMESCREEN_START_Y + 9, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
                    gold[3= new Stone((int)Screen.GAMESCREEN_START_X + 2 * 2, (int)Screen.GAMESCREEN_START_Y + 15, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
                    gold[4= new Stone((int)Screen.GAMESCREEN_START_X + 15 * 2, (int)Screen.GAMESCREEN_START_Y + 18, (int)eStone.gold_HP, (int)eStone.gold_Chance, ConsoleColor.Yellow);
 
                    poison[0= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 3, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[1= new Stone((int)Screen.GAMESCREEN_START_X + 17 * 2, (int)Screen.GAMESCREEN_START_Y + 8, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[2= new Stone((int)Screen.GAMESCREEN_START_X + 6 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[3= new Stone((int)Screen.GAMESCREEN_START_X + 13 * 2, (int)Screen.GAMESCREEN_START_Y + 10, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[4= new Stone((int)Screen.GAMESCREEN_START_X + 16 * 2, (int)Screen.GAMESCREEN_START_Y + 19, (int)eStone.poison_HP, 0, ConsoleColor.Green);
                    poison[5= new Stone((int)Screen.GAMESCREEN_START_X + 1 * 2, (int)Screen.GAMESCREEN_START_Y + 20, (int)eStone.poison_HP, 0, ConsoleColor.Green);
 
                    SetCursorPosition((int)Screen.GAMESCREEN_START_X + 9 * 2, (int)Screen.GAMESCREEN_START_Y + 10);
                    BackgroundColor = ConsoleColor.Blue;
                    Write("τ");
                    BackgroundColor = ConsoleColor.Black;
                    
                    posion_MaxCount = 6;    //없애야하는 오염물질 수
                    posion_Count = 0;       //스테이지 넘어갈 때 0으로 리셋
                    break;
                //스테이지 4
                case 4:
                    for (int i = (int)Screen.GAMESCREEN_START_X + 2; i < (int)Screen.GAMESCREEN_END_X - 1; i++)
                    {
                        for (int j = (int)Screen.GAMESCREEN_START_Y + 1; j < (int)Screen.GAMESCREEN_END_Y; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
 
                    for (int i = 0; i < 160; i++)
                    {
                        concrete[i] = new Stone(0010, ConsoleColor.Black, ConsoleColor.Black);
 
                        if (i < 50)
                        {
                            iron[i] = new Stone(0010, ConsoleColor.Black);
                            gold[i] = new Stone(0010, ConsoleColor.Black);
                        }
                        if (i < 10)
                        {
                            poison[i] = new Stone(0010, ConsoleColor.Black);
                        }
                    }
                    break;
                case 5:
                    break;
                case 6:
                    break;
            }
        }
        
        //곡괭이 이미지
        static void Pick_Img(ConsoleColor pick_color)
        {
            ForegroundColor = pick_color;
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 5, (int)Screen.GAMESCREEN_END_Y - 8);
            Write("■■■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 7);
            Write("■      ■");
            ForegroundColor = ConsoleColor.DarkRed;
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 7, (int)Screen.GAMESCREEN_END_Y - 9);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 7, (int)Screen.GAMESCREEN_END_Y - 7);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 7, (int)Screen.GAMESCREEN_END_Y - 6);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 7, (int)Screen.GAMESCREEN_END_Y - 5);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 7, (int)Screen.GAMESCREEN_END_Y - 4);
            Write("■");
        }
 
        //곡괭이질 애니메이션
        static void Pick_Ani(ConsoleColor pick_color)
        {
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 9);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 8);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 7);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 6);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 5);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 4);
            Write("          ");
 
            ForegroundColor = pick_color;
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 13, (int)Screen.GAMESCREEN_END_Y - 6);
            Write("■■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 17, (int)Screen.GAMESCREEN_END_Y - 5);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 19, (int)Screen.GAMESCREEN_END_Y - 4);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 19, (int)Screen.GAMESCREEN_END_Y - 3);
            Write("■");
            ForegroundColor = ConsoleColor.DarkRed;
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 2);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 13, (int)Screen.GAMESCREEN_END_Y - 3);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 15, (int)Screen.GAMESCREEN_END_Y - 4);
            Write("■");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 19, (int)Screen.GAMESCREEN_END_Y - 6);
            Write("■");
 
            System.Threading.Thread.Sleep(40);
 
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 6);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 5);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 4);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 3);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 2);
            Write("          ");
            SetCursorPosition((int)Screen.GAMESCREEN_END_X + 11, (int)Screen.GAMESCREEN_END_Y - 1);
            Write("          ");
        }
 
        //도움말
        static void Help_Menu(ref bool toggle, bool teleport_on)
        {
            ForegroundColor = ConsoleColor.White;
            //도움말 켜기
            if (toggle)
            {
                for (int i = 0; i < 13; i++)
                {
                    SetCursorPosition((int)Screen.SCREEN_END_X + 5 + i * 2, (int)Screen.SCREEN_START_Y + 3);
                    Write("―");
                    SetCursorPosition((int)Screen.SCREEN_END_X + 5 + i * 2, (int)Screen.SCREEN_START_Y + 12);
                    Write("―");
                    SetCursorPosition((int)Screen.SCREEN_END_X + 5 + i * 2, (int)Screen.SCREEN_START_Y + 16);
                    Write("―");
                    SetCursorPosition((int)Screen.SCREEN_END_X + 5 + i * 2, (int)Screen.SCREEN_START_Y + 20);
                    Write("―");
                    SetCursorPosition((int)Screen.SCREEN_END_X + 5 + i * 2, (int)Screen.SCREEN_START_Y + 24);
                    Write("―");
                }
                for (int i = 0; i < 20; i++)
                {
                    SetCursorPosition((int)Screen.SCREEN_END_X + 4, (int)Screen.SCREEN_START_Y + 4 + i);
                    Write("l");
                    SetCursorPosition((int)Screen.SCREEN_END_X + 32, (int)Screen.SCREEN_START_Y + 4 + i);
                    Write("l");
                }
                SetCursorPosition((int)Screen.SCREEN_END_X + 3, (int)Screen.SCREEN_START_Y + 2);
                Write("※조작법");
                SetCursorPosition((int)Screen.SCREEN_END_X + 24, (int)Screen.SCREEN_START_Y + 5);
                Write("▲");
                SetCursorPosition((int)Screen.SCREEN_END_X + 24, (int)Screen.SCREEN_START_Y + 9);
                Write("▼");
                SetCursorPosition((int)Screen.SCREEN_END_X + 20, (int)Screen.SCREEN_START_Y + 7);
                Write("◀");
                SetCursorPosition((int)Screen.SCREEN_END_X + 28, (int)Screen.SCREEN_START_Y + 7);
                Write("▶");
                SetCursorPosition((int)Screen.SCREEN_END_X + 10, (int)Screen.SCREEN_START_Y + 7);
                Write("이동");
                SetCursorPosition((int)Screen.SCREEN_END_X + 19, (int)Screen.SCREEN_START_Y + 11);
                Write("방향키/WASD");
                SetCursorPosition((int)Screen.SCREEN_END_X + 10, (int)Screen.SCREEN_START_Y + 14);
                Write("공격     스페이스바");
                SetCursorPosition((int)Screen.SCREEN_END_X + 7, (int)Screen.SCREEN_START_Y + 18);
                Write("업그레이드       U");
                if (!teleport_on)
                {
                    SetCursorPosition((int)Screen.SCREEN_END_X + 8, (int)Screen.SCREEN_START_Y + 22);
                    Write("텔레포트       잠김");
                }
                else
                {
                    SetCursorPosition((int)Screen.SCREEN_END_X + 8, (int)Screen.SCREEN_START_Y + 22);
                    Write("텔레포트        Z");
                }
                SetCursorPosition((int)Screen.SCREEN_END_X + 3, (int)Screen.SCREEN_START_Y + 27);
                Write("※게임 방법");
                SetCursorPosition((int)Screen.SCREEN_END_X + 5, (int)Screen.SCREEN_START_Y + 29);
                Write("1. 광석을 부순다!"); 
                SetCursorPosition((int)Screen.SCREEN_END_X + 5, (int)Screen.SCREEN_START_Y + 30);
                Write("2. 골드를 모은다!");
                SetCursorPosition((int)Screen.SCREEN_END_X + 5, (int)Screen.SCREEN_START_Y + 31);
                Write("3. 오염물질을 모두 없애면 ");
                BackgroundColor = ConsoleColor.Blue;
                ForegroundColor = ConsoleColor.Yellow;
                Write("☞");
                BackgroundColor = ConsoleColor.Black;
                ForegroundColor = ConsoleColor.White;
                Write("모양의 입구가 생긴다!");
                SetCursorPosition((int)Screen.SCREEN_END_X + 5, (int)Screen.SCREEN_START_Y + 32);
                Write("4. 더 깊은 곳으로!");
                toggle = !toggle;
            }
            //도움말 끄기
            else
            {
                for (int i = 0; i < 33; i++)
                {
                    SetCursorPosition((int)Screen.SCREEN_END_X + 3, (int)Screen.SCREEN_START_Y + 1 + i);
                    Write("                                                   ");
                    toggle = !toggle;
                }
            }
        }
        
        //플레이어의 전체적인 행동
        static void Action(ref Player player, Stone[] concrete, Stone[] iron, Stone[] gold, Stone[] poison, ref bool quit, Pick pick, ref int pick_num, ref bool toggle, ref bool teleport_on, ref bool effect)
        {
            //화면밖으로 나가지 않게 하기 위한 조건
            if ((player.x <= (int)Screen.GAMESCREEN_START_X) || (player.x >= (int)Screen.GAMESCREEN_END_X) || (player.y <= (int)Screen.GAMESCREEN_START_Y) || (player.y >= (int)Screen.GAMESCREEN_END_Y))
            {
                player.x = player.preX;
                player.y = player.preY;
                player.forwardX = player.preForwardX;
                player.forwardY = player.preForwardY;
            }
 
            //광석하고 겹치지 않게 하기 위한 조건
            for (int i = 0; i < concrete.Length; i++)
            {
                if (!concrete[i].isDead && (player.x == concrete[i].X) && (player.y == concrete[i].Y))
                {
                    player.x = player.preX;
                    player.y = player.preY;
                    player.forwardX = player.preForwardX;
                    player.forwardY = player.preForwardY;
                }
            }
            for (int i = 0; i < iron.Length; i++)
            {
                if (!iron[i].isDead && (player.x == iron[i].X) && (player.y == iron[i].Y))
                {
                    player.x = player.preX;
                    player.y = player.preY;
                    player.forwardX = player.preForwardX;
                    player.forwardY = player.preForwardY;
                }
            }
            for (int i = 0; i < gold.Length; i++)
            {
                if (!gold[i].isDead && (player.x == gold[i].X) && (player.y == gold[i].Y))
                {
                    player.x = player.preX;
                    player.y = player.preY;
                    player.forwardX = player.preForwardX;
                    player.forwardY = player.preForwardY;
                }
            }
            for (int i = 0; i < poison.Length; i++)
            {
                if (!poison[i].isDead && (player.x == poison[i].X) && (player.y == poison[i].Y))
                {
                    player.x = player.preX;
                    player.y = player.preY;
                    player.forwardX = player.preForwardX;
                    player.forwardY = player.preForwardY;
                }
            }
 
            //플레이어 위치, 이미지
            ForegroundColor = ConsoleColor.Cyan;
            SetCursorPosition(player.x, player.y);
            Write(player.shape);
 
            //이전 위치 저장(흔적 지우기용)
            player.preX = player.x;
            player.preY = player.y;
            player.preForwardX = player.forwardX;
            player.preForwardY = player.forwardY;
 
            //행동
            ConsoleKey key = ReadKey(true).Key;
            switch (key)
            {
                //위쪽 이동
                case ConsoleKey.W:
                case ConsoleKey.UpArrow:
                    if (player.shape == "▲")       //방향과 모양이 같은 경우만 이동
                        player.y--;
                    else
                        player.shape = "▲";
 
                    player.forwardX = player.x;
                    player.forwardY = player.y - 1;
 
                    break;
                //아래쪽 이동
                case ConsoleKey.S:
                case ConsoleKey.DownArrow:
                    if (player.shape == "▼")       //방향과 모양이 같은 경우만 이동
                        player.y++;
                    else
                        player.shape = "▼";
 
                    player.forwardX = player.x;
                    player.forwardY = player.y + 1;
 
                    break;
                //왼쪽 이동
                case ConsoleKey.A:
                case ConsoleKey.LeftArrow:
                    if (player.shape == "◀")       //방향과 모양이 같은 경우만 이동
                        player.x -= 2;
                    else
                        player.shape = "◀";
 
                    player.forwardX = player.x - 1;
                    player.forwardY = player.y;
 
                    break;
                //오른쪽 이동
                case ConsoleKey.D:
                case ConsoleKey.RightArrow:
                    if (player.shape == "▶")       //방향과 모양이 같은 경우만 이동
                        player.x += 2;
                    else
                        player.shape = "▶";
 
                    player.forwardX = player.x + 2;
                    player.forwardY = player.y;
 
                    break;
                //공격
                case ConsoleKey.Spacebar:
                    player.Attacking(concrete, iron, gold, poison);
 
                    //타겟팅 테스트용
                    //SetCursorPosition(player.forwardX, player.forwardY);
                    //Write("+");
 
                    Pick_Ani(pick.Color);
                    break;
                //텔레포트 사용
                case ConsoleKey.Z:
                    if (teleport_on && (player.Money >= 3))
                    {
                        if (effect)
                        {
                            BackgroundColor = ConsoleColor.Red;
                            SetCursorPosition(player.x, player.y);
                            Write(player.shape);
                            System.Threading.Thread.Sleep(30);
                            BackgroundColor = ConsoleColor.Blue;
                            SetCursorPosition(player.x, player.y);
                            Write(player.shape);
                            System.Threading.Thread.Sleep(30);
                            BackgroundColor = ConsoleColor.Green;
                            SetCursorPosition(player.x, player.y);
                            Write(player.shape);
                            System.Threading.Thread.Sleep(30);
                            BackgroundColor = ConsoleColor.Black;
                            SetCursorPosition(player.x, player.y);
                            Write(player.shape);
                            effect = false;
                        }
 
                        player.Money -= 3;  //텔레포트 사용시 소모하는 골드
 
                        player.Teleport(concrete, iron, gold, poison);  //텔레포트시 충돌 처리
                        effect = true;
                    }
                    break;
                //곡괭이 구매하기
                case ConsoleKey.U:
                    if (player.Money >= pick.Price)
                    {
                        player.Money -= pick.Price;
                        pick_num++;
                    }
                    break;
                //종료하기
                case ConsoleKey.Escape:
                    quit = true;
                    break;
                //도움말
                case ConsoleKey.F1:
                    Help_Menu(ref toggle, teleport_on);
                    break;
            }
 
            //타겟팅 테스트용
            //SetCursorPosition(player.preForwardX, player.preForwardY);
            //Write("  ");
 
            //가만히 있지 않을 경우만 이전 위치를 삭제한다
            if (player.x != player.preX || player.y != player.preY)
            {
                SetCursorPosition(player.preX, player.preY);
                Write("  ");
            }
 
            //인터페이스 색깔
            ForegroundColor = ConsoleColor.White;
        }
 
        static void Main(string[] args)
        {
            #region 기본 설정
            //시작 스테이지
            int stage = 1;
            bool clear_stage = true;
 
            //시작화면 및 기본설정
            CursorVisible = false;  //커서 지우기
            SetBufferSize(200200);
            SetWindowSize(15040);
 
            bool quit;                  //종료 플래그
            bool toggle = true;         //도움말 창 on/off
 
            bool teleport_on = false;   //텔레포트 능력 on/off
            bool effect = false;
            int money = 0;              //소지 골드
 
            Pick[] pick = new Pick[3];                          //곡괭이 종류
            pick[0= new Pick(115, ConsoleColor.DarkGray);   //철 곡괭이(테스트용 수치)
            pick[1= new Pick(3100, ConsoleColor.Yellow);    //금 곡괭이(테스트용 수치)
            pick[2= new Pick(5300, ConsoleColor.Cyan);      //에메랄드 곡괭이(테스트용 수치)
            int pick_num = 0;                                   //곡괭이 업그레이드 횟수
 
            int posion_MaxCount = 1;//오염물질 총 개수
            int posion_Count = 0;   //오염물질 없앤 개수
 
            Frame(0);               //게임 메인메뉴 프레임
            Title(9,4);             //타이틀 위치
 
            ForegroundColor = ConsoleColor.White;
            SetCursorPosition((int)Screen.SCREEN_START_X + 24, (int)Screen.SCREEN_START_Y + 19);
            Write("계속 하려면 아무키나 누르세요");
            SetCursorPosition((int)Screen.SCREEN_END_X - 14, (int)Screen.SCREEN_END_Y - 2);
            Write("ESC - 게임종료");
 
            //메인메뉴에서 키 입력
            ConsoleKey key = ReadKey(true).Key;
            switch (key)
            {
                case ConsoleKey.Escape:
                    quit = true;
                    break;
                default:
                    quit = false;
                    break;
            }
            Clear();
            
            //플레이어 생성
            Player player = new Player((int)Screen.GAMESCREEN_END_X / 2, (int)Screen.GAMESCREEN_END_Y - 1"▲");
 
            //탈출구 생성
            Escape escape = new Escape((int)Screen.GAMESCREEN_START_X + 19 * 2, (int)Screen.GAMESCREEN_START_Y + 1);
 
            //광석 생성
            Stone[] concrete = new Stone[160];
            Stone[] iron = new Stone[50];       //철광석
            Stone[] gold = new Stone[50];       //황금석
            Stone[] poison = new Stone[10];     //오염물질
 
            for(int i = 0; i < 160; i++)
            {
                concrete[i] = new Stone(0010, ConsoleColor.Black, ConsoleColor.Black);
 
                if (i < 50)
                {
                    iron[i] = new Stone(0010, ConsoleColor.Black);
                    gold[i] = new Stone(0010, ConsoleColor.Black);
                }
                if (i < 10)
                {
                    poison[i] = new Stone(0010, ConsoleColor.Black);
                }
            }
            #endregion
 
            #region 진행화면
            while (!quit)
            {
                Frame(1);   //게임 플레이화면 프레임
 
                //게임 UI
                SetCursorPosition((int)Screen.GAMESCREEN_START_X, (int)Screen.GAMESCREEN_END_Y + 2);
                Write($"골드 :      ");
                SetCursorPosition((int)Screen.GAMESCREEN_START_X, (int)Screen.GAMESCREEN_END_Y + 2);
                Write($"골드 : {player.Money}");
 
                if (pick_num < pick.Length - 1)
                {
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 12);
                    Write($"업그레이드(U) :            ");
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 12);
                    Write($"업그레이드(U) : {pick[pick_num].Price}골드");
                }
                else
                {
                    pick_num = pick.Length - 1;
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 13);
                    Write("                                ");
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 12);
                    Write("                                ");
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_END_Y - 13);
                    Write("업그레이드가 완료되었습니다");
                }
                SetCursorPosition((int)Screen.GAMESCREEN_START_X + 20, (int)Screen.GAMESCREEN_END_Y + 2);
                Write($"공격력 :           ");
                SetCursorPosition((int)Screen.GAMESCREEN_START_X + 20, (int)Screen.GAMESCREEN_END_Y + 2);
                Write($"공격력 : {pick[pick_num].Attack}");
 
                SetCursorPosition((int)Screen.SCREEN_END_X - 14, (int)Screen.SCREEN_END_Y - 4);
                Write("F1  -   도움말");
                SetCursorPosition((int)Screen.SCREEN_END_X - 14, (int)Screen.SCREEN_END_Y - 2);
                Write("ESC - 게임종료");
                
                //스테이지 설정
                if (clear_stage)
                {
                    money = player.Money;
                    Stage(stage, ref player, concrete, iron, gold, poison, ref escape, ref posion_MaxCount, ref posion_Count, ref teleport_on);
                    player.Money = money;
                    clear_stage = false;
                }
                
                //곡괭이 설정
                player.Attack = pick[pick_num].Attack;
                Pick_Img(pick[pick_num].Color);
                
                //광석의 위치와 모양, 보석이 떨어질 확률, 보석의 가치에 대한 정보
                for (int i = 0; i < concrete.Length; i++)
                {
                    foreach (string shaping in concrete[i])
                    {
                        SetCursorPosition(concrete[i].X, concrete[i].Y);
                        Write(shaping);
                        ForegroundColor = ConsoleColor.White;
                    }
                }
                for (int i = 0; i < iron.Length; i++)
                {
                    foreach (string shaping in iron[i])         //모든 철의 이미지를 가져온다.
                    {
                        SetCursorPosition(iron[i].X, iron[i].Y);
                        Write(shaping);
                        ForegroundColor = ConsoleColor.White;
                    }
                    iron[i].GainGem(player);
                }
                for (int i = 0; i < gold.Length; i++)
                {
                    foreach (string shaping in gold[i])         //모든 금의 이미지를 가져온다.
                    {
                        SetCursorPosition(gold[i].X, gold[i].Y);
                        Write(shaping);
                        ForegroundColor = ConsoleColor.White;
                    }
                    gold[i].GainGem(player);
                }
                for (int i = 0; i < poison.Length; i++)
                {
                    foreach (string shaping in poison[i])       //모든 오염물질의 이미지를 가져온다.
                    {
                        SetCursorPosition(poison[i].X, poison[i].Y);
                        Write(shaping);
                        ForegroundColor = ConsoleColor.White;
                    }
                    posion_Count += poison[i].death;
                }
 
                //클리어했을 경우
                if (posion_Count == posion_MaxCount)
                {
                    //탈출구 위치 생김
                    escape.Print();
 
                    if ((player.x == escape.X) && (player.y == escape.Y))
                    {
                        clear_stage = true;
                        stage++;    //다음 스테이지
                    }
                }
 
                //오염물질 개수 표시
                ForegroundColor = ConsoleColor.Green;
                SetCursorPosition((int)Screen.GAMESCREEN_END_X - 14, (int)Screen.GAMESCREEN_START_Y - 1);
                Write($"오염물질 {posion_Count} / {posion_MaxCount}");
                posion_Count = 0;
                ForegroundColor = ConsoleColor.White;
 
                //다음 스테이지로 가기 전까지 플레이어 행동
                if (!clear_stage)
                {
                    Action(ref player, concrete, iron, gold, poison, ref quit, pick[pick_num], ref pick_num, ref toggle, ref teleport_on, ref effect);
                }
 
                //텔레포트 도움말
                if (teleport_on)
                {
                    SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_START_Y + 1);
                    Write("텔레포트 능력사용(Z) : 3골드  ");
                }
 
                //텔레포트 획득시
                if (stage == 3 && player.x == (int)Screen.GAMESCREEN_START_X + 9 * 2 && player.y == (int)Screen.GAMESCREEN_START_Y + 10)
                {
                    if (!teleport_on)
                    {
                        SetCursorPosition((int)Screen.GAMESCREEN_END_X + 3, (int)Screen.GAMESCREEN_START_Y + 1);
                        Write("텔레포트 능력을 획득했습니다.");
                    }
                    teleport_on = true;
                }
                #endregion
 
                //스테이지 4 달성시
                if (stage == 4)
                {
                    for (int i = (int)Screen.GAMESCREEN_START_X + 2; i < (int)Screen.GAMESCREEN_END_X - 1; i++)
                    {
                        for (int j = (int)Screen.GAMESCREEN_START_Y + 1; j < (int)Screen.GAMESCREEN_END_Y; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
                    break;
                }
            }
 
            //마지막 스토리씬
            int scene = 1;
 
            while (!quit)
            {
                if ((player.x <= (int)Screen.SCREEN_START_X)  || (player.y <= (int)Screen.SCREEN_START_Y))
                {
                    player.x = player.preX;
                    player.y = player.preY;
                }
 
                player.preX = player.x;
                player.preY = player.y;
                
                SetCursorPosition(player.x, player.y);
                Write(player.shape);
 
                //대사
                switch (scene)
                {
                    case 1:
                        SetCursorPosition(421);
                        Write("    음... 그런데 내가 왜 이 의미없는 땅굴파기를 하고 있는거지?  ");
                        System.Threading.Thread.Sleep(2000);
                        SetCursorPosition(421);
                        Write("    안되겠어. 어떻게든 이곳을 빠져나가야되겠어.                 ");
                        scene++;
                        break;
                    case 3:
                        SetCursorPosition(421);
                        Write("    어? 뭐야? 그냥 지나가지잖아? 홀로그램 같은 거였나?  ");
                        System.Threading.Thread.Sleep(2000);
                        SetCursorPosition(421);
                        Write("    엇? 출구다!                                         ");
 
                        SetCursorPosition(905);
                        BackgroundColor = ConsoleColor.Blue;
                        ForegroundColor = ConsoleColor.Yellow;
                        Write("☞");
                        ForegroundColor = ConsoleColor.White;
                        BackgroundColor = ConsoleColor.Black;
 
                        SetCursorPosition(1402);
                        Write("Del");
 
                        scene++;
                        break;
                }
 
                key = ReadKey(true).Key;
                switch (key)
                {
                    //위쪽 이동
                    case ConsoleKey.W:
                    case ConsoleKey.UpArrow:
                        if (player.shape == "▲")       //방향과 모양이 같은 경우만 이동
                            player.y--;
                        else
                            player.shape = "▲";
                        break;
                    //아래쪽 이동
                    case ConsoleKey.S:
                    case ConsoleKey.DownArrow:
                        if (player.shape == "▼")       //방향과 모양이 같은 경우만 이동
                            player.y++;
                        else
                            player.shape = "▼";
                        break;
                    //왼쪽 이동
                    case ConsoleKey.A:
                    case ConsoleKey.LeftArrow:
                        if (player.shape == "◀")       //방향과 모양이 같은 경우만 이동
                            player.x -= 2;
                        else
                            player.shape = "◀";
                        break;
                    //오른쪽 이동
                    case ConsoleKey.D:
                    case ConsoleKey.RightArrow:
                        if (player.shape == "▶")       //방향과 모양이 같은 경우만 이동
                            player.x += 2;
                        else
                            player.shape = "▶";
                        break;
                }
                
 
                if ((scene == 2&& ((player.x >= (int)Screen.GAMESCREEN_END_X) || (player.y >= (int)Screen.GAMESCREEN_END_Y)))
                {
                    scene++;
                }
                
                //배드 엔딩
                if(player.x == 90 && player.y == 5)
                {
                    SetCursorPosition(5014);
                    Write("■■■    ■    ■■      ■■■  ■    ■  ■■");
                    SetCursorPosition(5015);
                    Write("■  ■  ■  ■  ■  ■    ■      ■■  ■  ■  ■");
                    SetCursorPosition(5016);
                    Write("■■    ■  ■  ■  ■    ■■■  ■ ■ ■  ■  ■");
                    SetCursorPosition(5017);
                    Write("■  ■  ■■■  ■  ■    ■      ■  ■■  ■  ■");
                    SetCursorPosition(5018);
                    Write("■■■  ■  ■  ■■      ■■■  ■    ■  ■■");
 
                    SetCursorPosition(5821);
                    Write("더 깊은 곳으로 들어갔습니다...");
                    SetCursorPosition(6022);
                    Write("TIP. '☞'모양은 입구입니다.");
                    SetCursorPosition(6023);
                    Write("                              ");
                    SetCursorPosition(6024);
                    Write("                              ");
                    SetCursorPosition(6025);
                    Write("                              ");
 
                    quit = true;
                }
 
                //세드 엔딩
                if (player.x == 140 && player.y == 2)
                {
                    for (int i = 0; i < 100; i++)
                    {
                        for (int j = 0; j < 40; j++)
                        {
                            SetCursorPosition(i, j);
                            Write("  ");
                        }
                    }
 
                    SetCursorPosition(1402);
                    Write("    ");
 
                    SetCursorPosition(1001);
                    Write("    어... 뭐지....                ");
                    System.Threading.Thread.Sleep(2000);
 
                    SetCursorPosition(1001);
                    ForegroundColor = ConsoleColor.Gray;
                    Write("    점점  내가...사라지는 것 같아...      ");
                    SetCursorPosition(player.preX, player.preY);
                    Write(player.shape);
 
                    System.Threading.Thread.Sleep(2000);
                    SetCursorPosition(1001);
                    Write("    아.... 내가  삭제되어지는 거구나...      ");
 
                    System.Threading.Thread.Sleep(2000);
                    SetCursorPosition(1001);
                    Write("    안녕....                             ");
 
                    ForegroundColor = ConsoleColor.DarkGray;
                    SetCursorPosition(player.preX, player.preY);
                    Write(player.shape);
                    System.Threading.Thread.Sleep(2000);
 
                    SetCursorPosition(5014);
                    Write("■■■    ■    ■■      ■■■  ■    ■  ■■");
                    SetCursorPosition(5015);
                    Write("■      ■  ■  ■  ■    ■      ■■  ■  ■  ■");
                    SetCursorPosition(5016);
                    Write("■■■  ■  ■  ■  ■    ■■■  ■ ■ ■  ■  ■");
                    SetCursorPosition(5017);
                    Write("    ■  ■■■  ■  ■    ■      ■  ■■  ■  ■");
                    SetCursorPosition(5018);
                    Write("■■■  ■  ■  ■■      ■■■  ■    ■  ■■");
 
                    quit = true;
                }
 
                if (player.x != player.preX || player.y != player.preY)
                {
                    SetCursorPosition(player.preX, player.preY);
                    Write("  ");
                }
            }
 
            SetCursorPosition(6028);
            ReadKey();
        }
    }
}
 
cs
반응형

댓글0