91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 37.68MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-16
  • 語言: C#
  • 標簽: C#??

資源簡介

根據“陳廣C#編寫俄羅斯方塊”,學習并增加了計分功能,選關功能,美化界面功能(由于壓縮包內有較多的圖片和音頻,所以比較大,Debug和Release兩個文件夾內雙擊.EXE文件都可運行)

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;

namespace?eluosi
{
????class?Block
????{
????????protected?Point[]?structArr;//存放磚塊組成信息的坐標數組
????????protected?int?_xPos;//磚塊中心所在的x坐標
????????protected?int?_yPos;//磚塊中心所在的y坐標
????????protected?Color?_blockColor;//磚塊顏色
????????protected?Color?disapperColor;//擦除顏色
????????protected?int?rectPix;//每單元格像素
????????public?Block()
????????{

????????}
????????public?Block(Point[]?saColor?bColorColor?dColorint?pix)
????????{
????????????_blockColor?=?bColor;
????????????disapperColor?=?dColor;
????????????rectPix?=?pix;
????????????structArr?=?sa;
????????}
????????public?Point?this[int?index]//索引器,根據索引訪問磚塊信息
????????{
????????????get
????????????{
????????????????return?structArr[index];
????????????}
????????}
????????public?int?Length
????????{
????????????get
????????????{
????????????????return?structArr.Length;
????????????}
????????}
????????#region?成員變量屬性
????????public?int?XPos
????????{
????????????get
????????????{
????????????????return?_xPos;
????????????}
????????????set
????????????{
????????????????_xPos?=?value;
????????????}
????????}
????????public?int?YPos
????????{
????????????get
????????????{
????????????????return?_yPos;
????????????}
????????????set
????????????{
????????????????_yPos?=?value;
????????????}
????????}
????????public?Color?BlockColor
????????{
????????????get
????????????{
????????????????return?_blockColor;
????????????}
????????}
#endregion
????????public?void?DesilRotate()//順時針
????????{
????????????int?temp;
????????????for(int?i?=?0;?i?????????????{
????????????????temp?=?structArr[i].X;
????????????????structArr[i].X?=?structArr[i].Y;
????????????????structArr[i].Y?=?-temp;?
????????????}
????????}
????????public?void?ContraRoatate()//逆時針
????????{
????????????int?temp;
????????????for(int?i?=?0;?i?????????????{
????????????????temp?=?structArr[i].X;
????????????????structArr[i].X?=?-structArr[i].Y;
????????????????structArr[i].Y?=?temp;
????????????}
????????}
????????private?Rectangle?PointToRect(Point?p)
????????{
????????????return?new?Rectangle((_xPos?+?p.X)?*?rectPix?+?1
????????????????????????????????????(_yPos-p.Y)*rectPix+1
????????????????????????????????????rectPix-2
????????????????????????????????????rectPix-2);
????????}
????????public?virtual?void?Paint(Graphics?gp)
????????{
????????????SolidBrush?sb?=?new?SolidBrush(_blockColor);
????????????foreach(Point?p?in?structArr)
????????????{
????????????????lock?(gp)
????????????????{
????????????????????gp.FillRectangle(sbPointToRect(p));
????????????????}
????????????}
????????}
????????public?void?erase(Graphics?gp)
????????{
????????????SolidBrush?sb?=?new?SolidBrush(disapperColor);
????????????foreach?(Point?p?in?structArr)
????????????{

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-18?21:47??eluosi\.vs\
?????目錄???????????0??2017-05-18?21:47??eluosi\.vs\eluosi\
?????目錄???????????0??2017-05-18?21:48??eluosi\.vs\eluosi\v15\
?????文件???????85504??2017-05-29?19:52??eluosi\.vs\eluosi\v15\.suo
?????文件?????????985??2017-05-18?21:48??eluosi\eluosi.sln
?????目錄???????????0??2017-05-29?15:51??eluosi\eluosi\
?????文件?????????189??2017-05-18?21:47??eluosi\eluosi\App.config
?????目錄???????????0??2017-05-19?23:51??eluosi\eluosi\bin\
?????目錄???????????0??2017-05-29?16:14??eluosi\eluosi\bin\Debug\
?????文件?????????945??2017-05-29?11:07??eluosi\eluosi\bin\Debug\BlockSet.xml
?????文件?????3166208??2017-05-29?16:14??eluosi\eluosi\bin\Debug\eluosi.exe
?????文件?????????189??2017-05-18?21:47??eluosi\eluosi\bin\Debug\eluosi.exe.config
?????文件??????116224??2017-05-29?16:14??eluosi\eluosi\bin\Debug\eluosi.pdb
?????目錄???????????0??2017-05-29?15:35??eluosi\eluosi\bin\Debug\img\
?????文件??????444760??2017-05-25?21:25??eluosi\eluosi\bin\Debug\img\backgroud.png
?????文件???????30906??2017-05-26?09:56??eluosi\eluosi\bin\Debug\img\close.png
?????文件???????26901??2017-05-26?20:17??eluosi\eluosi\bin\Debug\img\closeHover.png
?????文件???????30761??2017-05-26?09:58??eluosi\eluosi\bin\Debug\img\config.png
?????文件???????38137??2017-05-29?11:01??eluosi\eluosi\bin\Debug\img\configHover.png
?????文件??????347469??2017-05-26?13:45??eluosi\eluosi\bin\Debug\img\grade1.png
?????文件???????38745??2017-05-26?21:23??eluosi\eluosi\bin\Debug\img\grade1Icon.png
?????文件??????410727??2017-05-26?13:50??eluosi\eluosi\bin\Debug\img\grade2.png
?????文件???????21090??2017-05-26?21:28??eluosi\eluosi\bin\Debug\img\grade2Icon.png
?????文件??????422715??2017-05-26?13:51??eluosi\eluosi\bin\Debug\img\grade3.png
?????文件???????27406??2017-05-26?21:32??eluosi\eluosi\bin\Debug\img\grade3Icon.png
?????文件??????298603??2017-05-26?13:48??eluosi\eluosi\bin\Debug\img\grade4.png
?????文件???????23086??2017-05-27?21:47??eluosi\eluosi\bin\Debug\img\grade4Icon.png
?????文件??????440775??2017-05-26?13:47??eluosi\eluosi\bin\Debug\img\grade5.png
?????文件???????23608??2017-05-27?21:46??eluosi\eluosi\bin\Debug\img\grade5Icon.png
?????文件??????307526??2017-05-26?13:49??eluosi\eluosi\bin\Debug\img\grade6.png
?????文件???????24964??2017-05-27?21:47??eluosi\eluosi\bin\Debug\img\grade6Icon.png
............此處省略173個文件信息

評論

共有 條評論