資源簡介
和微信最初的打飛機一致 winform
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?Microsoft.DirectX.DirectSound;
using?System.Threading;
namespace?PlainGame
{
????class?DXPlay
????{
????????private?string?musicPath;
????????Plain?form;
????????public?DXPlay(Plain?formstring?musicPath)
????????{
????????????this.form?=?form;
????????????this.musicPath?=?musicPath;
????????}
????????public?void?Play()
????????{
????????????SecondaryBuffer?secBuffer;//緩沖區對象????
????????????Device?secDev;//設備對象????
????????????secDev?=?new?Device();
????????????secDev.SetCooperativeLevel(form?CooperativeLevel.Normal);//設置設備協作級別????
????????????secBuffer?=?new?SecondaryBuffer(musicPath?secDev);//創建輔助緩沖區????
????????????secBuffer.Play(0?BufferPlayFlags.Default);//設置緩沖區為默
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-11-04?19:36??bin\
?????目錄???????????0??2014-05-20?13:39??bin\Debug\
?????目錄???????????0??2014-05-20?10:27??bin\Debug\dll\
?????文件??????178176??2005-03-18?16:23??bin\Debug\dll\Microsoft.DirectX.DirectSound.dll
?????文件??????223232??2005-03-18?16:23??bin\Debug\dll\Microsoft.DirectX.dll
?????文件??????178176??2005-03-18?16:23??bin\Debug\Microsoft.DirectX.DirectSound.dll
?????文件??????223232??2005-03-18?16:23??bin\Debug\Microsoft.DirectX.dll
?????文件???????28160??2014-05-20?13:48??bin\Debug\PlayPlane_01.exe
?????文件???????58880??2014-05-20?13:48??bin\Debug\PlayPlane_01.pdb
?????文件???????11608??2014-05-20?13:36??bin\Debug\PlayPlane_01.vshost.exe
?????文件?????????490??2010-03-17?22:39??bin\Debug\PlayPlane_01.vshost.exe.manifest
?????目錄???????????0??2014-05-20?10:27??bin\Debug\resource\
?????文件???????25282??2013-08-23?11:22??bin\Debug\resource\bg_01.jpg
?????文件???????26800??2013-08-23?11:22??bin\Debug\resource\bg_02.jpg
?????文件???????14124??1992-09-10?10:59??bin\Debug\resource\BOMB3.WAV
?????文件???????25382??1995-06-29?13:25??bin\Debug\resource\BOMB5.WAV
?????文件???????11303??2013-08-23?11:22??bin\Debug\resource\explosion.mp3
?????文件???????55244??2013-11-05?22:45??bin\Debug\resource\explosion.wav
?????文件????????3391??2013-08-23?11:37??bin\Debug\resource\font.fnt
?????文件????????5622??2013-08-23?11:22??bin\Debug\resource\font_0.png
?????文件????????6074??2013-08-26?11:10??bin\Debug\resource\icon36x36.png
?????文件????????8111??2013-08-26?11:10??bin\Debug\resource\icon48x48.png
?????文件???????12047??2013-08-26?11:10??bin\Debug\resource\icon72x72.png
?????文件????????6191??2013-08-26?15:27??bin\Debug\resource\loading.gif
?????文件???????72098??2013-08-23?11:22??bin\Debug\resource\plane.png
?????文件????????1462??2013-08-26?14:20??bin\Debug\resource\plane.xm
?????文件????????9218??2013-08-23?11:22??bin\Debug\resource\shoot.mp3
?????文件???????32044??2013-11-05?22:45??bin\Debug\resource\shoot.wav
?????目錄???????????0??2014-05-20?10:27??bin\Release\
?????目錄???????????0??2014-05-20?10:27??bin\Release\dll\
?????文件??????178176??2005-03-18?16:23??bin\Release\dll\Microsoft.DirectX.DirectSound.dll
............此處省略70個文件信息
- 上一篇:C# 實現畫筆(可涂鴉/可簽名)
- 下一篇:C# 圖書管理系統三層體系
評論
共有 條評論