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

  • 大小: 165KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-03
  • 語言: C#
  • 標(biāo)簽: C#??Puyo??

資源簡介

C#編寫的PuyoPuyo游戲程序,同色4個(gè)方塊消去,可以自行設(shè)置界面大小,方塊個(gè)數(shù),方塊顏色等,可以學(xué)習(xí)參考

資源截圖

代碼片段和文件信息

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

namespace?PuyoPuyo
{
????class?Block
????{
????????protected?Point[]?structArr;//存放磚塊組成信息的坐標(biāo)數(shù)組
????????protected?int?_xPos;//方塊中心點(diǎn)所在的x坐標(biāo)
????????protected?int?_yPos;
????????protected?Color?_blockColor1;//磚塊顏色
????????protected?Color?_blockColor2;
????????protected?Color?disapperColor;//擦除磚塊時(shí)所用的顏色(黑色)
????????protected?int?rectPix;//每單元格像素
????????public?Block()//默認(rèn)構(gòu)造函數(shù),聲明此構(gòu)造函數(shù)是為了子類能創(chuàng)建
????????{

????????}
????????public?Block(Point[]?sa?Color?bColor1Color?bColor2Color?dColor?int?pix)
????????{//重載構(gòu)造函數(shù),給成員變量賦值
????????????_blockColor1?=?bColor1;
????????????_blockColor2?=?bColor2;
????????????disapperColor?=?dColor;
????????????rectPix?=?pix;
????????????structArr?=?sa;
????????}
????????public?Point?this[int?index]//索引器,根據(jù)索引訪問磚塊里的小方塊坐標(biāo)
????????{
????????????get
????????????{
????????????????return?structArr[index];
????????????}
????????}
????????public?int?Length//屬性,表示structArr的長度,配合索引器的使用
????????{
????????????get
????????????{
????????????????return?structArr.Length;
????????????}
????????}
????????#region?成員變量相應(yīng)的屬性
????????public?int?XPos
????????{
????????????get
????????????{
????????????????return?_xPos;
????????????}
????????????set
????????????{
????????????????_xPos?=?value;
????????????}
????????}
????????public?int?YPos
????????{
????????????get
????????????{
????????????????return?_yPos;
????????????}
????????????set
????????????{
????????????????_yPos?=?value;
????????????}
????????}
????????public?Color?BlockColor1
????????{
????????????get
????????????{
????????????????return?_blockColor1;
????????????}
????????}
????????public?Color?BlockColor2
????????{
????????????get
????????????{
????????????????return?_blockColor2;
????????????}
????????}
????????#endregion
????????public?void?DeasilRotate()
????????{
????????????int?temp;//?x1=yy1=-x
????????????for?(int?i?=?0;?i?????????????{
????????????????temp?=?structArr[i].X;
????????????????structArr[i].X?=?structArr[i].Y;
????????????????structArr[i].Y?=?-temp;
????????????}
????????}
????????public?void?ContraRotate()
????????{
????????????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)//Rectangle?矩陣,Point二維平面,把一個(gè)坐標(biāo)點(diǎn)轉(zhuǎn)化為畫布的坐標(biāo)值
????????{
????????????return?new?Rectangle((_xPos?+?p.X)?*?rectPix?+?1//左上角坐標(biāo)x
?????????????????????????????????(_yPos?-?p.Y)?*?rectPix?+?1
?????????????????????????????????rectPix?-?2//方塊長度
?????????????????????????????????rectPix?-?2);?//方塊高度
????????}
????????public?virtual?void?Paint(Graphics?gp)?//virtual虛方法,指定畫板下繪制磚塊
????????{
????????????SolidBrush?sb1?=?new?SolidBrush(_blockCol

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????886??2011-01-24?16:09??Puyo\WindowsFormsApplication1\PuyoPuyo.sln

????..A..H.?????47616??2011-02-01?12:02??Puyo\WindowsFormsApplication1\PuyoPuyo.suo

?????文件??????43008??2011-02-01?11:55??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

?????文件??????99840??2011-02-01?11:55??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

?????文件??????11600??2011-02-01?12:01??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

?????文件??????27136??2011-01-24?17:55??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.exe

?????文件??????48640??2011-01-24?17:55??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.pdb

?????文件???????3922??2011-02-01?10:54??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\Block.cs

?????文件???????1519??2011-02-01?11:19??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\BlockGroup.cs

?????文件???????1427??2011-01-24?17:10??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\BlockInfo.cs

?????文件????????803??2011-02-01?10:56??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\BlockSet.xml

?????文件??????10542??2011-01-24?17:46??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\Config.cs

?????文件??????11168??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\FrmConfig.cs

?????文件??????22987??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\FrmConfig.Designer.cs

?????文件???????6017??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\FrmConfig.resx

?????文件???????4134??2011-02-01?11:40??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\frmPuyoPuyo.cs

?????文件???????5574??2011-02-01?10:58??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\frmPuyoPuyo.Designer.cs

?????文件???????5817??2011-02-01?10:58??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\frmPuyoPuyo.resx

?????文件???????2874??2011-01-24?19:10??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\InfoArr.cs

?????文件???????7473??2011-01-31?23:25??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????6350??2011-02-01?11:55??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件???????1626??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog

?????文件???????4586??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog

?????文件???????2086??2011-02-01?12:01??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\PuyoPuyo.csproj.FileListAbsolute.txt

?????文件????????180??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\PuyoPuyo.FrmConfig.resources

?????文件????????180??2011-02-01?11:18??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\PuyoPuyo.frmPuyoPuyo.resources

?????文件????????180??2011-02-01?01:23??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\PuyoPuyo.Properties.Resources.resources

?????文件???????8031??2011-01-31?23:26??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\ResolveAssemblyReference.cache

?????文件???????4608??2011-01-24?16:12??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

?????文件???????2363??2011-01-24?15:32??Puyo\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

............此處省略37個(gè)文件信息

評(píng)論

共有 條評(píng)論