C#贪吃蛇游戏的编制

时间:2013-07-22 10:11:06
【文件属性】:

文件名称:C#贪吃蛇游戏的编制

文件大小:903B

文件格式:SLN

更新时间:2013-07-22 10:11:06

游戏

amespace Snake { //移动方向 public enum Way { EAST, SOUTH, WEST, NORTH } ///

/// Form1 的摘要说明。 /// public class mainForm : System.Windows.Forms.Form { //移动速度控制 private int speed = 500; //食物坐标 private Point foodPoint ; //食物颜色 private System.Drawing.Color foodColor = System.Drawing.Color.Green; //统计吞下多少食物 private int foodCount = 0; //是否停止游戏 private bool isStop = false; private System.Windows.Forms.Panel panel1; private SnakeMod snake = new SnakeMod(); private System.Windows.Forms.Button button1; private Thread game; /// /// 必需的设计器变量。 /// private System.ComponentModel.Container components = null; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Label label1; private System.Windows.Forms.MainMenu mainMenu1; private System.Windows.Forms.MenuItem menuItem1; private System.Windows.Forms.MenuItem menuItem2; private System.Windows.Forms.MenuItem menuItem3; private System.Windows.Forms.MenuItem menuItem4; private System.Windows.Forms.MenuItem menuItem5; private System.Windows.Forms.MenuItem menuItem6; private System.Windows.Forms.MenuItem menuItem8; private System.Windows.Forms.MenuItem menuItem9; private System.Windows.Forms.MenuItem menuItem10; private System.Windows.Forms.MenuItem menuItem11; private System.Windows.Forms.MenuItem menuExit; private System.Windows.Forms.Label label2; //创建委托 private delegate void DrawDele(); private DrawDele drawDelegate;


网友评论

  • 挺好的,要是具体注释的再详细点就更完美了