資源簡介
WPF誰是臥底游戲源碼
源碼描述:
誰是臥底游戲,通過HTML5中的websocket實現(xiàn),所以瀏覽器必須支持HTML5。
程序主要分為4個類,
一個公告類(Common)
一個web客戶端(HtmlWebSocket)
一個服務端(WpfApplication1)
一個通訊實現(xiàn)類(WebSocket)
現(xiàn)在只是實現(xiàn)了功能,能玩,但存在一些小BUG,但不影響整體流程。
對于頁面和代碼還未進行細致的優(yōu)化
游戲運行時先啟動WebSocket服務器,在運行WebSocket.htm游戲頁面
可以局域網(wǎng)聊天發(fā)言
歡迎感興趣的用戶下載研究
開發(fā)工具:VS2010
代碼片段和文件信息
namespace?Common
{
????public?class?Enums
????{
????????public?enum?ServerStatusLevel?{?Off?WaitingConnection?ConnectionEstablished?};
????????public?enum?LogType
????????{
????????????Start=0
????????????Login=1
????????????Logout=2
????????????Msg=3
????????????Error=4
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-17?07:58??.vs\
?????目錄???????????0??2019-06-17?08:12??.vs\Wpf\
?????目錄???????????0??2019-06-17?08:12??.vs\Wpf\DesignTimeBuild\
?????文件?????????872??2019-06-17?08:12??.vs\Wpf\DesignTimeBuild\.dtbcache
?????目錄???????????0??2019-06-17?07:59??.vs\Wpf\v15\
?????文件??????118784??2019-06-17?08:12??.vs\Wpf\v15\.suo
?????目錄???????????0??2019-06-17?07:59??.vs\Wpf\v15\Server\
?????目錄???????????0??2019-06-17?07:59??.vs\Wpf\v15\Server\sqlite3\
?????文件???????????0??2019-06-17?07:59??.vs\Wpf\v15\Server\sqlite3\db.lock
?????文件????????4096??2019-06-17?07:59??.vs\Wpf\v15\Server\sqlite3\storage.ide
?????文件???????32768??2019-06-17?07:59??.vs\Wpf\v15\Server\sqlite3\storage.ide-shm
?????文件?????1557392??2019-06-17?07:59??.vs\Wpf\v15\Server\sqlite3\storage.ide-wal
?????目錄???????????0??2019-06-17?07:58??.vs\config\
?????文件???????85644??2019-06-17?07:59??.vs\config\applicationhost.config
?????目錄???????????0??2019-06-17?07:58??Common\
?????文件????????2336??2013-08-26?15:43??Common\Common.csproj
?????文件?????????320??2013-08-26?15:16??Common\Enums.cs
?????文件?????????370??2013-08-26?13:52??Common\Logger.cs
?????目錄???????????0??2019-06-17?07:58??Common\Properties\
?????文件????????1344??2013-08-26?13:14??Common\Properties\AssemblyInfo.cs
?????目錄???????????0??2019-06-17?07:58??Common\bin\
?????目錄???????????0??2019-06-17?07:58??Common\bin\Debug\
?????文件????????5120??2019-06-17?07:59??Common\bin\Debug\Common.dll
?????文件???????11776??2019-06-17?07:59??Common\bin\Debug\Common.pdb
?????目錄???????????0??2019-06-17?08:13??Common\bin\Release\
?????目錄???????????0??2019-06-17?07:58??Common\obj\
?????目錄???????????0??2019-06-17?07:58??Common\obj\Debug\
?????文件??????????42??2019-06-11?18:37??Common\obj\Debug\Common.csproj.CoreCompileInputs.cache
?????文件????????1608??2019-06-17?07:59??Common\obj\Debug\Common.csproj.FileListAbsolute.txt
?????文件????????7574??2019-06-11?18:37??Common\obj\Debug\Common.csprojAssemblyReference.cache
?????文件????????5120??2019-06-17?07:59??Common\obj\Debug\Common.dll
............此處省略125個文件信息
評論
共有 條評論