資源簡介
C# 小雞快跑游戲
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Drawing;
namespace?WindowsFormsApplication1
{
????public?class?Chick
????{
????????public?float?g?=?150.0f;
????????public?float?speedX;
????????public?float?speedY?=?100.0f;
????????public?float?dt?=?0.1f;
????????public?bool?IsRuning?=?false;
????????public?bool?IsJumping?=?false;
????????public?bool?IsSpeeding?=?false;
????????public?bool?IsFalling?=?false;
????????public?Bitmap?bmp;
????????public?Chick()
????????{
????????????using?(Bitmap?bmpt?=?(Bitmap)Bitmap.FromFile(“chick.png“))
????????????{
????????????????bmp?=?bmpt.Clone()?as?Bitmap;
????????????}
????????}
????????public?void?Update()
????????{
????????????if?(!IsRuning)
????????????????return;
????????????if?(IsSpeeding)
????????????????this.point.X?+=?(int)((speedX?*?2)?*?dt?+?0.9);
????????????else
????????????????this.point.X?+=?(int)(speedX?*?dt?+?0.9);
????????????if?(IsJumping?||?IsFalling)
????????????{
????????????????this.point.Y?+=?(int)(-speedY?*?dt?+?0.9);
????????????????speedY?-=?(int)(g?*?dt);
????????????}
????????}
????????public?Point?point;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????9326??2012-05-20?21:51??小雞快跑游戲\bin\Debug\chick.png
?????文件??????11294??2012-05-20?23:01??小雞快跑游戲\bin\Debug\land-20.png
?????文件???????8681??2012-05-20?22:00??小雞快跑游戲\bin\Debug\land0.png
?????文件??????11532??2012-05-20?23:02??小雞快跑游戲\bin\Debug\land20.png
?????文件??????14848??2012-08-19?20:43??小雞快跑游戲\bin\Debug\WindowsFormsApplication1.exe
?????文件??????34304??2012-08-19?20:43??小雞快跑游戲\bin\Debug\WindowsFormsApplication1.pdb
?????文件??????11600??2012-08-19?20:44??小雞快跑游戲\bin\Debug\WindowsFormsApplication1.vshost.exe
?????文件????????490??2010-03-17?22:39??小雞快跑游戲\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
?????文件???????1195??2012-08-19?20:39??小雞快跑游戲\Chick.cs
?????文件???????2777??2012-08-19?20:43??小雞快跑游戲\Form1.cs
?????文件???????3049??2012-08-19?20:43??小雞快跑游戲\Form1.Designer.cs
?????文件???????6011??2012-08-19?20:43??小雞快跑游戲\Form1.resx
?????文件???????4440??2012-08-19?20:36??小雞快跑游戲\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6307??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????284??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件????????734??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件???????1060??2012-08-19?20:44??小雞快跑游戲\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
?????文件??????14848??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\WindowsFormsApplication1.exe
?????文件????????180??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
?????文件??????34304??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\WindowsFormsApplication1.pdb
?????文件????????180??2012-08-19?20:43??小雞快跑游戲\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
?????文件????????505??2012-08-19?18:58??小雞快跑游戲\Program.cs
?????文件???????1386??2012-08-19?18:58??小雞快跑游戲\Properties\AssemblyInfo.cs
?????文件???????2898??2012-08-19?18:58??小雞快跑游戲\Properties\Resources.Designer.cs
?????文件???????5612??2012-08-19?18:58??小雞快跑游戲\Properties\Resources.resx
?????文件???????1109??2012-08-19?18:58??小雞快跑游戲\Properties\Settings.Designer.cs
?????文件????????249??2012-08-19?18:58??小雞快跑游戲\Properties\Settings.settings
?????文件???????3936??2012-08-19?20:40??小雞快跑游戲\Road.cs
?????文件???????5176??2012-08-19?20:40??小雞快跑游戲\Scene.cs
?????文件???????3814??2012-08-19?20:43??小雞快跑游戲\WindowsFormsApplication1.csproj
............此處省略13個文件信息
- 上一篇:周易排盤源碼
- 下一篇:FM1702調(diào)試源程序
評論
共有 條評論