坦克 using System; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace 坦克大战 {
/**////<summary> /// 说明:在.net2.0及WinForm中坦克小游戏的示例 /// 作者:剑了 /// 日期:2008-10-02 /// 首发地址:http://www.cnblogs.com/xy8.cn/ ///</summary> publicpartialclass Form1 : Form {
privatestaticint screenWidth;//屏幕宽度 privatestaticint screenHeight;//屏幕高度 privatestring Direction;//定义当前方向