資源簡介
C# 2048 游戲源碼下載
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?Games
{
????public?partial?class?_2048messageBox?:?MyForm
????{
????????public?_2048messageBox(string?titlestring?message)
????????{
????????????InitializeComponent();
????????????this.max_moved_top?=?100;
????????????label1.Text?=?title;
????????????textBox1.Text?=?message.ToString();
????????}
????????protected?override?void?onkeydown(KeyEventArgs?e)
????????{
????????????if?(e.KeyCode?==?Keys.Enter)
????????????????this.Close();
????????????base.onkeydown(e);
????????}
????}
}
- 上一篇:C# 五子棋游戲(支持悔棋)
- 下一篇:C# 打字游戲
評論
共有 條評論