資源簡介
C#開發(fā)的飛機小游戲,純屬娛樂
代碼片段和文件信息
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;//緩沖區(qū)對象????
????????????Device?secDev;//設(shè)備對象????
????????????secDev?=?new?Device();
????????????secDev.SetCooperativeLevel(form?CooperativeLevel.Normal);//設(shè)置設(shè)備協(xié)作級別????
????????????secBuffer?=?new?SecondaryBuffer(musicPath?secDev);//創(chuàng)建輔助緩沖區(qū)????
????????????secBuffer.Play(0?BufferPlayFlags.Default);//設(shè)置緩沖區(qū)為默
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-05-15?13:49??bin\
?????目錄???????????0??2019-05-15?13:49??bin\Debug\
?????文件???????28160??2014-05-20?13:48??bin\Debug\000PlayPlane_01.exe
?????文件???????54642??2016-12-21?22:41??bin\Debug\1.png
?????文件???????98561??2016-12-21?22:42??bin\Debug\2.png
?????目錄???????????0??2019-05-15?13:49??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
?????文件???????28672??2019-05-15?14:07??bin\Debug\PlayPlane_01.exe
?????文件???????83456??2019-05-15?14:07??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??2019-05-15?13:49??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
............此處省略76個文件信息
- 上一篇:C#雷電中控與手機同步器開源android模擬器
- 下一篇:五子棋單機版C#源碼
評論
共有 條評論