Tris Form Game by console base(HatchStyle 적용)
#설명:Windows10 Console창에서 실행하는 테트리스 프로그램 소스입니다.
#메모장에서 코드작성후에, C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe 로 컴파일 & 링크
#IDE는 사용하지 않습니다.(Visual Studio와 같은)
#HatchStyle 적용
#Tris Form Game by console base
#Tris Form Game by console base
#IDE(No Needed), Memo is sufficient, Window10 csc.exe is sufficient.

if(____t_tris[mm, nn]==0)
{
#if false
Brush brush = new SolidBrush(mainBackColor);
graphics.FillRectangle(brush,
new Rectangle(50 + nn * ____WIDTH,
40 + mm * ____HEIGHT,
____WIDTH-1, ____HEIGHT-1));
#endif
#if true
HatchStyle hs = (HatchStyle)____hatch_style;
Brush hb = new HatchBrush(hs, mainBackColor);
graphics.FillRectangle(hb, new Rectangle(50 + nn * ____WIDTH,
40 + mm * ____HEIGHT,
____WIDTH-1, ____HEIGHT-1));
#endif
}
else
{
#if false
Brush brush = new SolidBrush(realBackColor[ ____t_tris[mm, nn] ]);
graphics.FillRectangle(brush,
new Rectangle(50 + nn * ____WIDTH,
40 + mm * ____HEIGHT,
____WIDTH-1, ____HEIGHT-1));
#endif
#if true
HatchStyle hs = (HatchStyle)____hatch_style;
Brush hb = new HatchBrush(hs, realBackColor[ ____t_tris[mm, nn] ]);
graphics.FillRectangle(hb, new Rectangle(50 + nn * ____WIDTH,
40 + mm * ____HEIGHT,
____WIDTH-1, ____HEIGHT-1));
#endif
}
#File Attach