实例介绍
本资源对应 net_assassin 的博客专栏中的源代码。 简单易懂 敬请阅读
【实例截图】
【核心代码】
BeginGameProgramming
└── Begin Game Programming
├── software
│ ├── Anim8or.exe
│ ├── Anim8or Web Site.url
│ └── animv095c.zip
└── source
├── APPEND
│ ├── Lighting Stock Sphere
│ │ ├── Direct3DTest
│ │ │ ├── D3DXSpriteTest.vcproj
│ │ │ ├── D3DXSpriteTest.vcproj.HAL.jonathan.user
│ │ │ ├── LightingExample.exe
│ │ │ └── main.cpp
│ │ ├── LightingExample.sln
│ │ └── LightingExample.suo
│ ├── Shader--Color
│ │ ├── ColorShader.sln
│ │ ├── ColorShader.suo
│ │ └── Direct3DTest
│ │ ├── ambientdiffuse.fx
│ │ ├── apache.bmp
│ │ ├── Apache.X
│ │ ├── ColorShader.exe
│ │ ├── ColorShader.vcproj
│ │ ├── ColorShader.vcproj.HAL.jonathan.user
│ │ ├── main.cpp
│ │ ├── Mesh.cpp
│ │ ├── Mesh.h
│ │ └── Thumbs.db
│ └── Shader--Wireframe Teapot
│ ├── Direct3DTest
│ │ ├── main.cpp
│ │ ├── Shader.fx
│ │ ├── SimpleShader.vcproj
│ │ ├── SimpleShader.vcproj.HAL.jonathan.user
│ │ └── WireframeShader.exe
│ ├── WireframeShader.ncb
│ ├── WireframeShader.sln
│ └── WireframeShader.suo
├── chapter01
│ └── Hello World Demo
│ ├── HelloWorld.exe
│ ├── HelloWorld.sln
│ ├── HelloWorld.suo
│ ├── HelloWorld.vcproj
│ └── main.cpp
├── chapter02
│ ├── Game Loop Demo
│ │ ├── c.bmp
│ │ ├── GameLoop.exe
│ │ ├── GameLoop.ncb
│ │ ├── GameLoop.sln
│ │ ├── GameLoop.suo
│ │ ├── GameLoop.vcproj
│ │ ├── GameLoop.vcproj.PC-201202241225.Administrator.user
│ │ └── winmain.cpp
│ └── Window Test Demo
│ ├── Debug
│ │ ├── BuildLog.htm
│ │ ├── main.obj
│ │ ├── mt.dep
│ │ ├── vc90.idb
│ │ ├── vc90.pdb
│ │ ├── WindowTest.exe
│ │ ├── WindowTest.exe.intermediate.manifest
│ │ └── WindowTest.pdb
│ ├── main.cpp
│ ├── WindowTest.exe
│ ├── WindowTest.ncb
│ ├── WindowTest.sln
│ ├── WindowTest.suo
│ ├── WindowTest.vcproj
│ └── WindowTest.vcproj.PC-201202241225.Administrator.user
├── chapter03
│ ├── Direct3D Fullscreen Demo
│ │ ├── d3d_fullscreen.exe
│ │ ├── Direct3D_Fullscreen.sln
│ │ ├── Direct3D_Fullscreen.suo
│ │ ├── Direct3D_Fullscreen.vcproj
│ │ └── winmain.cpp
│ └── Direct3D Windowed Demo
│ ├── d3d_windowed.exe
│ ├── Direct3D_Windowed.sln
│ ├── Direct3D_Windowed.suo
│ ├── Direct3D_Windowed.vcproj
│ └── winmain.cpp
├── chapter04
│ ├── Create Surface Demo
│ │ ├── create_surface.exe
│ │ ├── create_surface.sln
│ │ ├── create_surface.suo
│ │ ├── create_surface.vcproj
│ │ └── winmain.cpp
│ └── Load Bitmap Demo
│ ├── legotron.bmp
│ ├── load_bitmap.exe
│ ├── load_bitmap.sln
│ ├── load_bitmap.suo
│ ├── load_bitmap.vcproj
│ └── winmain.cpp
├── chapter05
│ ├── Bomb Catcher Game
│ │ ├── bomb.bmp
│ │ ├── bomb_catcher.exe
│ │ ├── Bomb_Catcher.sln
│ │ ├── Bomb_Catcher.suo
│ │ ├── Bomb_Catcher.vcproj
│ │ ├── bucket.bmp
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── Thumbs.db
│ ├── Thumbs.db
│ └── XInput Test Demo
│ ├── create_surface.suo
│ ├── create_surface.vcproj
│ ├── winmain.cpp
│ ├── xinput_test.exe
│ ├── Xinput_Test.sln
│ └── Xinput_Test.suo
├── chapter06
│ ├── Animate Sprite Demo
│ │ ├── animate_sprite.exe
│ │ ├── Animate_Sprite.sln
│ │ ├── Animate_Sprite.suo
│ │ ├── Animate_Sprite.vcproj
│ │ ├── explosion_30_128.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── notes.txt
│ └── Trans Sprite Demo
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── shuttle_alpha.tga
│ ├── shuttle_colorkey.bmp
│ ├── shuttle_notrans.bmp
│ ├── trans_sprite.exe
│ ├── Trans_Sprite.sln
│ ├── Trans_Sprite.suo
│ └── Trans_Sprite.vcproj
├── chapter07
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Rotate Animate Demo
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── paladin_walk.png
│ │ ├── Rotate_Animate_Demo.sln
│ │ ├── Rotate_Animate_Demo.suo
│ │ ├── Rotate_Animate_Demo.vcproj
│ │ ├── rotate_animate.exe
│ │ └── Thumbs.db
│ ├── Rotate Scale Demo
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── Rotate_Scale_Demo.sln
│ │ ├── Rotate_Scale_Demo.suo
│ │ ├── Rotate_Scale_Demo.vcproj
│ │ ├── rotate_scale.exe
│ │ ├── sunflower.bmp
│ │ └── Thumbs.db
│ └── Thumbs.db
├── chapter08
│ ├── Bounding Box Demo
│ │ ├── asteroid.tga
│ │ ├── Bounding_Box_Demo.sln
│ │ ├── Bounding_Box_Demo.suo
│ │ ├── Bounding_Box_Demo.vcproj
│ │ ├── bounding_box.exe
│ │ ├── fatship.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── Thumbs.db
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Distance Demo
│ │ ├── asteroid.tga
│ │ ├── distance_demo.exe
│ │ ├── Distance_Demo.sln
│ │ ├── Distance_Demo.suo
│ │ ├── Distance_Demo.vcproj
│ │ ├── fatship.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── Thumbs.db
│ └── Thumbs.db
├── chapter09
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ └── Font Test Demo
│ ├── Font_Demo.sln
│ ├── Font_Demo.suo
│ ├── Font_Demo.vcproj
│ ├── font_test.exe
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ └── MyWindows.cpp
├── chapter10
│ ├── Bitmap Scrolling Demo
│ │ ├── bitmap_scrolling.exe
│ │ ├── Bitmap_Scroll.sln
│ │ ├── Bitmap_Scroll.suo
│ │ ├── Bitmap_Scroll.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── space2.bmp
│ │ └── Thumbs.db
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Thumbs.db
│ ├── Tile Dynamic Scrolling Demo
│ │ ├── dynamic_scroll.exe
│ │ ├── DynamicScroll.sln
│ │ ├── DynamicScroll.suo
│ │ ├── DynamicScroll.vcproj
│ │ ├── map
│ │ │ ├── space1.bmp
│ │ │ ├── spacemap.FMP
│ │ │ └── spacemap.txt
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── spacemap.BMP
│ │ └── Thumbs.db
│ └── Tile Static Scrolling Demo
│ ├── game.cpp
│ ├── groundtiles.bmp
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── static_scrolling.exe
│ ├── Thumbs.db
│ ├── Tile_Static_Scroll.sln
│ ├── Tile_Static_Scroll.suo
│ └── Tile_Static_Scroll.vcproj
├── chapter11
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ └── Play Sound Demo
│ ├── bounce.wav
│ ├── bumper.tga
│ ├── craters.tga
│ ├── DirectSound.cpp
│ ├── DirectSound.h
│ ├── lightningball.tga
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── play_sound.exe
│ ├── Play_Sound.sln
│ ├── Play_Sound.suo
│ ├── Play_Sound.vcproj
│ └── step.wav
├── chapter12
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ └── Textured Cube Demo
│ ├── cube.bmp
│ ├── DirectSound.cpp
│ ├── DirectSound.h
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── textured_cube.exe
│ ├── Textured_Cube.sln
│ ├── Textured_Cube.suo
│ └── Textured_Cube.vcproj
├── chapter13
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Render Mesh Demo
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── fokker.bmp
│ │ ├── Fokker.X
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── render_mesh.exe
│ │ ├── Render_Mesh.sln
│ │ ├── Render_Mesh.suo
│ │ ├── Render_Mesh.vcproj
│ │ └── Thumbs.db
│ ├── Stock Mesh Demo
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── stock_mesh.exe
│ │ ├── Stock_Mesh.sln
│ │ ├── Stock_Mesh.suo
│ │ └── Stock_Mesh.vcproj
│ └── Thumbs.db
└── chapter14
├── Anti-Virus Game
│ ├── anti-virus.exe
│ ├── Anti-Virus.sln
│ ├── Anti-Virus.suo
│ ├── Anti-Virus.vcproj
│ ├── binary.bmp
│ ├── charging.wav
│ ├── clip.wav
│ ├── DirectSound.cpp
│ ├── DirectSound.h
│ ├── energyslice.tga
│ ├── foom.wav
│ ├── fragment.tga
│ ├── healthslice.tga
│ ├── hit.wav
│ ├── launch1.wav
│ ├── launch2.wav
│ ├── longfoom.wav
│ ├── missed1.wav
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── purplefire.tga
│ ├── start1.wav
│ ├── step4.wav
│ ├── Thumbs.db
│ ├── tisk.wav
│ ├── ufo.png
│ └── virus1.tga
└── DirectX_Project
├── DirectSound.cpp
├── DirectSound.h
├── DirectX_Project.sln
├── DirectX_Project.suo
├── DirectX_Project.vcproj
├── MyDirectX.cpp
├── MyDirectX.h
├── MyGame.cpp
└── MyWindows.cpp
59 directories, 354 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论