资源简介
在VS2008平台上,用C#编写的俄罗斯方块游戏

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using System.ComponentModel;
namespace 俄罗斯方块
{
///
/// 定义一个方块的所有状态集
///
struct OneTetris
{
//定义一个方块的所有状态集
public int[] OneTueris; //定义位置信息
public int theColumn; //定义列数
public int theLine; //定义行数
public int[] colSpan; //定义列跨度
public int[] linSpan; //定义行跨度
public int theIndex; //定义状态集的下标
}
///
/// 定义俄罗斯方块类
///
class CTetris
{
private Form theContainer; //定义所属窗体
private Label theTopBar; // 定义顶端边框
private Label theBottomBar; // 定义底端边框
private Label theLeftBar; // 定义左端边框
private Label theRightBar; // 定义右端边框
private int theHeight; // 定义高度
private int theLines; // 定义行数
private int theSpace; // 定义间隔高度
private Label[] theTueris; // 定义方块数组,存放之
private bool[] theVisual; // 定义控制方块显示的数组
private int theKinds; // 定义记录种类
private int theKindsIndex; // 定义记录种类的下标(0)
private int theLeaves; // 定义等级
private int theClearLine; // 所消行数
private int theSorce; // 定义成绩
private int[] theMaxLine = new int[10]; // 定义记录列中最上面的方块序号(0)
private Timer theTimer; // 定义计时器
private OneTetris[] allTueris = new OneTetris[7];
private Label[] KindsTueris; // 定义方块数组,存放之
private Label[] NextTueris = new Label[4]; // 定义方块数组,存放提示
private Label theInformation; // 定义成绩信息
private int theOld;
///
/// 构造函数,初始化所有属性
///
///
///
///
///
public CTetris(Form theForm int height int lines int space)
{
//构造函数,初始化所有属性
//初始化容器
theContainer = theForm;
theContainer.Text = “俄罗斯方块“;
theContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink;
theContainer.MaximizeBox = false;
theContainer.BackColor = Color.LightSeaGreen;
theContainer.FormBorderstyle = FormBorderstyle.Fixed3D;
//初始化高度等其他属性
theL
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-01-18 17:49 俄罗斯方块\
目录 0 2011-01-18 17:49 俄罗斯方块\Backup\
目录 0 2011-01-18 17:49 俄罗斯方块\Backup\俄罗斯方块\
文件 934 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块.sln
文件 16896 2009-06-07 18:52 俄罗斯方块\Backup\俄罗斯方块.suo
文件 39194 2009-06-07 14:54 俄罗斯方块\Backup\俄罗斯方块\CTetris.cs
文件 1580 2009-06-07 14:46 俄罗斯方块\Backup\俄罗斯方块\Form1.cs
文件 3851 2009-05-31 21:21 俄罗斯方块\Backup\俄罗斯方块\Form1.Designer.cs
文件 6012 2009-05-31 21:21 俄罗斯方块\Backup\俄罗斯方块\Form1.resx
文件 474 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Program.cs
目录 0 2011-01-18 17:49 俄罗斯方块\Backup\俄罗斯方块\Properties\
文件 1186 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Properties\AssemblyInfo.cs
文件 2884 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Properties\Resources.Designer.cs
文件 5612 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Properties\Resources.resx
文件 1098 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Properties\Settings.Designer.cs
文件 249 2009-05-26 21:07 俄罗斯方块\Backup\俄罗斯方块\Properties\Settings.settings
文件 3275 2009-05-26 21:51 俄罗斯方块\Backup\俄罗斯方块\俄罗斯方块.csproj
文件 3764 2009-10-27 11:12 俄罗斯方块\UpgradeLog.xm
文件 1713 2011-01-18 17:50 俄罗斯方块\UpgradeLog2.xm
目录 0 2011-01-18 17:49 俄罗斯方块\_UpgradeReport_Files\
文件 3348 2011-01-18 17:50 俄罗斯方块\_UpgradeReport_Files\UpgradeReport.css
文件 12505 2010-05-04 01:19 俄罗斯方块\_UpgradeReport_Files\UpgradeReport.xslt
文件 69 2011-01-18 17:50 俄罗斯方块\_UpgradeReport_Files\UpgradeReport_Minus.gif
文件 71 2011-01-18 17:50 俄罗斯方块\_UpgradeReport_Files\UpgradeReport_Plus.gif
目录 0 2011-01-18 17:49 俄罗斯方块\俄罗斯方块\
文件 935 2011-01-18 17:50 俄罗斯方块\俄罗斯方块.sln
文件 18944 2011-01-18 17:51 俄罗斯方块\俄罗斯方块.suo
目录 0 2011-01-18 17:50 俄罗斯方块\俄罗斯方块\bin\
目录 0 2011-01-18 17:50 俄罗斯方块\俄罗斯方块\bin\Debug\
文件 24064 2011-01-18 17:50 俄罗斯方块\俄罗斯方块\bin\Debug\俄罗斯方块.exe
文件 56832 2011-01-18 17:50 俄罗斯方块\俄罗斯方块\bin\Debug\俄罗斯方块.pdb
............此处省略28个文件信息
- 上一篇:学生成绩管理系统 需求分析和系统设计文档
- 下一篇:德国公民的信用数据
相关资源
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
评论
共有 条评论