• 大小: 24.51MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-02
  • 语言: C#
  • 标签: C#  .NET  小程序  

资源简介

一个由C#编写的小游戏数字华容道,该程序带游戏音效,界面美观,方法都进行过重构。可用VS2015以上版本直接运行,或者点开一级目录的EXE快捷方式文件运行。可供课程设计参考,另外提供标准的课程设计报告,以及答辩PPT,希望能够对C#学习者提供帮助

资源截图

代码片段和文件信息

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;
using System.Media;


namespace HuaRongDao
{
    public partial class Menu : Form
    {
        SoundPlayer jr = new SoundPlayer(Properties.Resources.进入);
        public Menu()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
        }
        
        private void Menu_Load(object sender EventArgs e)
        {

        }
        public void closethis()
        {
            Show();
        }
        private void button1_Click(object sender EventArgs e)
        {
            Page.Dif = Game.Diff.simple;
            Hide();
            Run1 ff = new Run1();
            ff.closefather += new HuaRongDao.Run1.childclose(closethis);
            ff.Show();
            jr.Play();
        }
        private void button2_Click(object sender EventArgs e)
        {
            Page.Dif = Game.Diff.ordinary;
            Hide();
            Run ff = new Run();
            ff.closefather += new HuaRongDao.Run.childclose(closethis);
            ff.Show();
            jr.Play();
        }
        private void button3_Click(object sender EventArgs e)
        {
            Page.Dif = Game.Diff.difficulty;
            Hide();
            Run2 ff = new Run2();
            ff.closefather += new HuaRongDao.Run2.childclose(closethis);
            ff.Show();
            jr.Play();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-09 13:32  数字华容道\
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\DesignTimeBuild\
     文件         436  2018-08-08 15:12  数字华容道\HuaRongDao\.vs\HuaRongDao\DesignTimeBuild\.dtbcache
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\v14\
     文件      114176  2018-07-22 17:31  数字华容道\HuaRongDao\.vs\HuaRongDao\v14\.suo
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\
     文件      117760  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\.suo
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\sqlite3\
     文件           0  2018-08-08 15:12  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\sqlite3\db.lock
     文件        4096  2018-08-08 15:12  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\sqlite3\storage.ide
     文件       32768  2018-10-09 13:05  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\sqlite3\storage.ide-shm
     文件     1054752  2018-10-09 13:05  数字华容道\HuaRongDao\.vs\HuaRongDao\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\HuaRongDao\
     文件         189  2018-06-19 20:53  数字华容道\HuaRongDao\HuaRongDao\App.config
     文件       67646  2018-06-26 16:01  数字华容道\HuaRongDao\HuaRongDao\Doraemon_128px_501951_easyicon.net.ico
     文件        6969  2018-07-07 08:30  数字华容道\HuaRongDao\HuaRongDao\HuaRongDao.UI.csproj
     文件         479  2018-06-26 15:59  数字华容道\HuaRongDao\HuaRongDao\HuaRongDao.UI.csproj.user
     文件        5955  2018-06-26 15:10  数字华容道\HuaRongDao\HuaRongDao\Menu.Designer.cs
     文件        1637  2018-07-05 17:20  数字华容道\HuaRongDao\HuaRongDao\Menu.cs
     文件       88564  2018-06-26 15:10  数字华容道\HuaRongDao\HuaRongDao\Menu.resx
     文件         521  2018-06-19 21:12  数字华容道\HuaRongDao\HuaRongDao\Program.cs
     目录           0  2018-10-09 13:27  数字华容道\HuaRongDao\HuaRongDao\Properties\
     文件        1328  2018-06-19 20:53  数字华容道\HuaRongDao\HuaRongDao\Properties\AssemblyInfo.cs
     文件        5422  2018-07-07 08:30  数字华容道\HuaRongDao\HuaRongDao\Properties\Resources.Designer.cs
     文件        7627  2018-07-07 08:30  数字华容道\HuaRongDao\HuaRongDao\Properties\Resources.resx
     文件        1097  2018-06-19 20:53  数字华容道\HuaRongDao\HuaRongDao\Properties\Settings.Designer.cs
     文件         249  2018-06-19 20:53  数字华容道\HuaRongDao\HuaRongDao\Properties\Settings.settings
............此处省略112个文件信息

评论

共有 条评论