- 51Aspx源码必读 .txt[3KB]
- Platformer\Content\Levels\0.txt[330B]
- Platformer\Content\Levels\1.txt[330B]
- Platformer\Content\Levels\2.txt[330B]
- Platformer\Content\obj\Windows Phone\Debug\Content.contentproj.FileListAbsolute.txt[121B]
- Platformer\Platformer\Accelerometer.cs[6KB]
- Platformer\Platformer\Animation.cs[2KB]
- Platformer\Platformer\AnimationPlayer.cs[3KB]
- Platformer\Platformer\Circle.cs[1KB]
- Platformer\Platformer\Enemy.cs[6KB]
- Platformer\Platformer\Gem.cs[3KB]
- Platformer\Platformer\Level.cs[18KB]
- Platformer\Platformer\Platformer (Phone).csproj[5KB]
- Platformer\Platformer\Platformer (Windows).csproj[7KB]
- Platformer\Platformer\Platformer (Xbox).csproj[6KB]
- Platformer\Platformer\PlatformerGame.cs[9KB]
- Platformer\Platformer\Player.cs[17KB]
- Platformer\Platformer\Program.cs[700B]
- Platformer\Platformer\RectangleExtensions.cs[2KB]
- Platformer\Platformer\Tile.cs[1KB]
- Platformer\Platformer\TouchCollectionExtensions.cs[1KB]
- Platformer\Platformer\bin\Windows Phone\Debug\AppManifest.xaml[352B]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Levels\0.txt[330B]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Levels\1.txt[330B]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Levels\2.txt[330B]
- Platformer\Platformer\obj\Windows Phone\Debug\cachefile-{2FDB7EF3-D3C4-47A3-8E75-C901A05B8574}-targetpath.txt[1KB]
- Platformer\Platformer\obj\Windows Phone\Debug\ContentPipeline-{2FDB7EF3-D3C4-47A3-8E75-C901A05B8574}.xml[21KB]
- Platformer\Platformer\obj\Windows Phone\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt[26B]
- Platformer\Platformer\obj\Windows Phone\Debug\Platformer (Phone).csproj.FileListAbsolute.txt[7KB]
- Platformer\Platformer\obj\Windows Phone\Debug\WMAppManifest.xml[1KB]
- Platformer\Platformer\obj\Windows Phone\Debug\XapCacheFile.xml[11KB]
- Platformer\Platformer\Properties\AppManifest.xml[207B]
- Platformer\Platformer\Properties\AssemblyInfo.cs[1KB]
- Platformer\Platformer\Properties\WMAppManifest.xml[1KB]
- from.gif[4KB]
- Platformer (Phone).sln[1KB]
- Platformer (Windows).sln[1KB]
- Platformer (Xbox).sln[1KB]
- 最新Asp.Net源码下载.url[123B]
- Platformer\Content\Content.contentproj[11KB]
- Platformer\Content\Backgrounds\Layer0_0.png[264KB]
- Platformer\Content\Backgrounds\Layer0_1.png[311KB]
- Platformer\Content\Backgrounds\Layer0_2.png[284KB]
- Platformer\Content\Backgrounds\Layer1_0.png[708KB]
- Platformer\Content\Backgrounds\Layer1_1.png[679KB]
- Platformer\Content\Backgrounds\Layer1_2.png[679KB]
- Platformer\Content\Backgrounds\Layer2_0.png[238KB]
- Platformer\Content\Backgrounds\Layer2_1.png[315KB]
- Platformer\Content\Backgrounds\Layer2_2.png[385KB]
- Platformer\Content\Fonts\Hud.spritefont[2KB]
- Platformer\Content\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache[5KB]
- Platformer\Content\obj\Windows Phone\Debug\ResolveAssemblyReference.cache[47KB]
- Platformer\Content\Overlays\you_died.png[17KB]
- Platformer\Content\Overlays\you_lose.png[18KB]
- Platformer\Content\Overlays\you_win.png[17KB]
- Platformer\Content\Sounds\ExitReached.wma[51KB]
- Platformer\Content\Sounds\GemCollected.wma[16KB]
- Platformer\Content\Sounds\MonsterKilled.wma[22KB]
- Platformer\Content\Sounds\Music.wma[1.84MB]
- Platformer\Content\Sounds\PlayerFall.wma[28KB]
- Platformer\Content\Sounds\PlayerJump.wma[10KB]
- Platformer\Content\Sounds\PlayerKilled.wma[22KB]
- Platformer\Content\Sounds\Powerup.wma[110KB]
- Platformer\Content\Sprites\Gem.png[3KB]
- Platformer\Content\Sprites\MonsterA\Idle.png[42KB]
- Platformer\Content\Sprites\MonsterA\Run.png[36KB]
- Platformer\Content\Sprites\MonsterB\Idle.png[53KB]
- Platformer\Content\Sprites\MonsterB\Run.png[38KB]
- Platformer\Content\Sprites\MonsterC\Idle.png[42KB]
- Platformer\Content\Sprites\MonsterC\Run.png[35KB]
- Platformer\Content\Sprites\MonsterD\Idle.png[48KB]
- Platformer\Content\Sprites\MonsterD\Run.png[39KB]
- Platformer\Content\Sprites\Player\Celebrate.png[36KB]
- Platformer\Content\Sprites\Player\Die.png[34KB]
- Platformer\Content\Sprites\Player\Idle.png[6KB]
- Platformer\Content\Sprites\Player\Jump.png[34KB]
- Platformer\Content\Sprites\Player\Run.png[36KB]
- Platformer\Content\Tiles\BlockA0.png[6KB]
- Platformer\Content\Tiles\BlockA1.png[6KB]
- Platformer\Content\Tiles\BlockA2.png[6KB]
- Platformer\Content\Tiles\BlockA3.png[6KB]
- Platformer\Content\Tiles\BlockA4.png[6KB]
- Platformer\Content\Tiles\BlockA5.png[6KB]
- Platformer\Content\Tiles\BlockA6.png[6KB]
- Platformer\Content\Tiles\BlockB0.png[6KB]
- Platformer\Content\Tiles\BlockB1.png[6KB]
- Platformer\Content\Tiles\Exit.png[5KB]
- Platformer\Content\Tiles\Platform.png[6KB]
- Platformer\Platformer\Background.png[43KB]
- Platformer\Platformer\Game.ico[378KB]
- Platformer\Platformer\GameThumbnail.png[8KB]
- Platformer\Platformer\Platformer (Phone).csproj.Debug.cachefile[1KB]
- Platformer\Platformer\Platformer (Phone).csproj.user[275B]
- Platformer\Platformer\bin\Windows Phone\Debug\GameThumbnail.png[8KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Platformer.dll[27KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Platformer.pdb[79KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Platformer.xap[8.29MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer0_0.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer0_1.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer0_2.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer1_0.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer1_1.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer1_2.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer2_0.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer2_1.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Backgrounds\Layer2_2.xnb[1.47MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Fonts\Hud.xnb[37KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Overlays\you_died.xnb[251KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Overlays\you_lose.xnb[251KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Overlays\you_win.xnb[251KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\ExitReached.xnb[464KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\GemCollected.xnb[112KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\MonsterKilled.xnb[168KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\Music.wma[2.76MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\Music.xnb[123B]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\PlayerFall.xnb[248KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\PlayerJump.xnb[56KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\PlayerKilled.xnb[152KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sounds\Powerup.xnb[1.05MB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Gem.xnb[4KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterA\Idle.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterA\Run.xnb[160KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterB\Idle.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterB\Run.xnb[160KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterC\Idle.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterC\Run.xnb[160KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterD\Idle.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\MonsterD\Run.xnb[160KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Player\Celebrate.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Player\Die.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Player\Idle.xnb[16KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Player\Jump.xnb[176KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Sprites\Player\Run.xnb[160KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA0.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA1.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA2.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA3.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA4.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA5.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockA6.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockB0.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\BlockB1.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\Exit.xnb[5KB]
- Platformer\Platformer\bin\Windows Phone\Debug\Content\Tiles\Platform.xnb[5KB]
- Platformer\Platformer\obj\Windows Phone\Debug\DesignTimeResolveAssemblyReferencesInput.cache[6KB]
- Platformer\Platformer\obj\Windows Phone\Debug\Platformer.dll[27KB]
- Platformer\Platformer\obj\Windows Phone\Debug\Platformer.pdb[79KB]
- Platformer\Platformer\obj\Windows Phone\Debug\WMAppManifest.xml.g[1KB]
- Platformer\Platformer\obj\Xbox 360\Debug\DesignTimeResolveAssemblyReferencesInput.cache[6KB]
源码介绍
源码参数
项目描述
Platformer中的13个类的中心思想分别概述下:
1:PlatformerGame类,它是整个游戏的控制中心,除了告知游戏中所有的对象什么时候响应和显示外,还负责内容管道和关卡的加载,以及游戏中各种对象的更新。可谓是劳苦功高
2:Level类 ,它是游戏的关卡类。每个关卡对象包含了一个用于存放场景瓷砖信息的多维数组,英雄、游戏开始和结束位置的坐标、总分数、游戏剩余时间、一系列宝石和僵尸怪的信息。
3:Player类用于实现英雄的加载、绘制和更新操作。
4:Enemy类,负责僵尸怪的加载、绘制和更新操作。
5:Gem类在游戏中实现一个悬浮在空中的宝石,不同类型的宝石所含的分值也不相同。英雄的主要任务就是收集这些宝石。有关宝石的加载、绘制和更新也由Gem类负责。
6:Tile 结构。Tile如同我们现实中的瓷砖一样,我们可以在每个Tile中包含一个游戏元素,这样就可以拼接成我们期望的游戏场景。在Platformer游戏中我们用这些Tile构成形成关卡的场景图。
7:Animation类,望文生义,当然是游戏候中不可或缺的动画类,它主要是解析游戏中包含的众多Sprites(精灵)图片,以实现动画的帧分解。
8: AnimationPlayer类实现了将Animation类定义的精灵图片中的每一帧形成连贯的动画。
9:Circle类专门只用于Gem类的,它定义了一个包围Gem的圆,以实现主角和宝石的碰撞检测。
10:RectangleExtension累是Rectangle的一个扩展静态类,同样由于碰撞检测。
11:Program是所有XNA项目的启动类,也是程序的入口。
12:TouchCollectionExtensions类是针对WP7的触摸屏输入而实现的一个扩展类,以检测触摸屏是否存在触点。
13:Accelerometer类对WP7中的加速度传感器做了封装,左右倾斜手机可以实现主角向左或向右的移动。
此源码仅供学习之用
下载记录(Only Recent 100)
用户名 | 推荐指数 | 下载时间 |
---|