实例介绍
Jonathan S. Harbour 游戏编程入门(第4版)
【实例截图】
【核心代码】
beginninggameprogramming(4thedtion)
└── resources
├── chapter01
│ └── Hello World
│ ├── HelloWorld.sln
│ ├── HelloWorld.suo
│ ├── HelloWorld.v12.suo
│ ├── HelloWorld.vcxproj
│ ├── HelloWorld.vcxproj.filters
│ └── main.cpp
├── chapter02
│ ├── Game Loop
│ │ ├── c.bmp
│ │ ├── GameLoop.sln
│ │ ├── GameLoop.suo
│ │ ├── GameLoop.v12.suo
│ │ ├── GameLoop.vcproj
│ │ ├── GameLoop.vcxproj
│ │ ├── GameLoop.vcxproj.filters
│ │ └── main.cpp
│ └── Window Test
│ ├── Window Test
│ │ ├── main.cpp
│ │ ├── Window Test.vcxproj
│ │ └── Window Test.vcxproj.filters
│ ├── Window Test.sln
│ └── Window Test.v12.suo
├── chapter03
│ ├── Direct3D Fullscreen
│ │ ├── Direct3D_Fullscreen
│ │ │ ├── Direct3D_Fullscreen.vcxproj
│ │ │ ├── Direct3D_Fullscreen.vcxproj.filters
│ │ │ └── main.cpp
│ │ ├── Direct3D_Fullscreen.sln
│ │ └── Direct3D_Fullscreen.v12.suo
│ └── Direct3D Windowed
│ ├── Direct3D Windowed
│ │ ├── Direct3D Windowed.vcxproj
│ │ ├── Direct3D Windowed.vcxproj.filters
│ │ └── main.cpp
│ ├── Direct3D Windowed.sln
│ └── Direct3D Windowed.v12.suo
├── chapter04
│ ├── Create Surface
│ │ ├── Create Surface
│ │ │ ├── Create Surface.vcxproj
│ │ │ ├── Create Surface.vcxproj.filters
│ │ │ └── main.cpp
│ │ ├── Create Surface.sln
│ │ └── Create Surface.v12.suo
│ └── Draw Bitmap
│ ├── Draw Bitmap
│ │ ├── Draw Bitmap.vcxproj
│ │ ├── Draw Bitmap.vcxproj.filters
│ │ ├── Draw Bitmap.vcxproj.user
│ │ ├── main.cpp
│ │ └── photo.png
│ ├── Draw Bitmap.sln
│ └── Draw Bitmap.v12.suo
├── chapter05
│ ├── Bomb Catcher Game
│ │ ├── bomb.bmp
│ │ ├── Bomb_Catcher.sln
│ │ ├── Bomb_Catcher.suo
│ │ ├── Bomb_Catcher.v12.suo
│ │ ├── Bomb_Catcher.vcxproj
│ │ ├── Bomb_Catcher.vcxproj.filters
│ │ ├── Bomb_Catcher.vcxproj.user
│ │ ├── bucket.bmp
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── Thumbs.db
│ ├── Thumbs.db
│ └── XInput Test Demo
│ ├── create_surface.suo
│ ├── create_surface.vcxproj
│ ├── create_surface.vcxproj.filters
│ ├── create_surface.vcxproj.user
│ ├── main.cpp
│ ├── Xinput_Test.sln
│ ├── Xinput_Test.suo
│ └── Xinput_Test.v12.suo
├── chapter06
│ ├── Animate Sprite
│ │ ├── Animate_Sprite.sln
│ │ ├── Animate_Sprite.suo
│ │ ├── Animate_Sprite.v12.suo
│ │ ├── Animate_Sprite.vcxproj
│ │ ├── Animate_Sprite.vcxproj.filters
│ │ ├── explosion_30_128.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── DirectX_Project.vcxproj.user
│ │ ├── HELP.txt
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ └── Transparent Sprite
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── shuttle_alpha.tga
│ ├── shuttle_colorkey.bmp
│ ├── shuttle_notrans.bmp
│ ├── Trans_Sprite.sln
│ ├── Trans_Sprite.suo
│ ├── Trans_Sprite.v12.suo
│ ├── Trans_Sprite.vcxproj
│ ├── Trans_Sprite.vcxproj.filters
│ └── Trans_Sprite.vcxproj.user
├── chapter07
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Rotate Scale Demo
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── Rotate_Scale_Demo.sln
│ │ ├── Rotate_Scale_Demo.suo
│ │ ├── Rotate_Scale_Demo.v12.suo
│ │ ├── Rotate_Scale_Demo.vcxproj
│ │ ├── Rotate_Scale_Demo.vcxproj.filters
│ │ ├── sunflower.bmp
│ │ └── Thumbs.db
│ ├── Scale Animate Demo
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── paladin_walk.png
│ │ ├── Rotate_Animate_Demo.suo
│ │ ├── Rotate_Animate_Demo.vcxproj
│ │ ├── Rotate_Animate_Demo.vcxproj.filters
│ │ ├── Rotate_Animate_Demo.vcxproj.user
│ │ ├── Scale Animate Demo.sln
│ │ ├── Scale Animate Demo.suo
│ │ ├── Scale Animate Demo.v12.suo
│ │ └── Thumbs.db
│ └── Thumbs.db
├── chapter08
│ ├── Bounding Box Collision Demo
│ │ ├── asteroid.tga
│ │ ├── Bounding_Box_Demo.sln
│ │ ├── Bounding_Box_Demo.suo
│ │ ├── Bounding_Box_Demo.v12.suo
│ │ ├── Bounding_Box_Demo.vcxproj
│ │ ├── Bounding_Box_Demo.vcxproj.filters
│ │ ├── CollisionTest.suo
│ │ ├── CollisionTest.suo.old
│ │ ├── fatship.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ └── Thumbs.db
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Radial Collision Demo
│ │ ├── asteroid.tga
│ │ ├── Bounding_Box_Demo.suo
│ │ ├── CollisionTest.suo
│ │ ├── CollisionTest.suo.old
│ │ ├── Distance_Demo.suo
│ │ ├── Distance_Demo.vcxproj
│ │ ├── Distance_Demo.vcxproj.filters
│ │ ├── Distance_Demo.vcxproj.user
│ │ ├── fatship.tga
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── Radial Collision Demo.sln
│ │ ├── Radial Collision Demo.suo
│ │ ├── Radial Collision Demo.v12.suo
│ │ └── Thumbs.db
│ └── Thumbs.db
├── chapter09
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ └── Font Test Demo
│ ├── Font_Demo.sln
│ ├── Font_Demo.suo
│ ├── Font_Demo.v12.suo
│ ├── Font_Demo.vcxproj
│ ├── Font_Demo.vcxproj.filters
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ └── winmain.cpp
├── chapter10
│ ├── Bitmap Scrolling Demo
│ │ ├── Bitmap_Scroll.sln
│ │ ├── Bitmap_Scroll.suo
│ │ ├── Bitmap_Scroll.v12.suo
│ │ ├── Bitmap_Scroll.vcxproj
│ │ ├── Bitmap_Scroll.vcxproj.filters
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── space2.bmp
│ │ └── Thumbs.db
│ ├── DirectX_Project
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ └── MyWindows.cpp
│ ├── Thumbs.db
│ ├── Tile Dynamic Scrolling Demo
│ │ ├── DynamicScroll.sln
│ │ ├── DynamicScroll.suo
│ │ ├── DynamicScroll.v12.suo
│ │ ├── DynamicScroll.vcxproj
│ │ ├── DynamicScroll.vcxproj.filters
│ │ ├── 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
│ ├── Thumbs.db
│ ├── Tile_Static_Scroll.sln
│ ├── Tile_Static_Scroll.suo
│ ├── Tile_Static_Scroll.v12.suo
│ ├── Tile_Static_Scroll.vcxproj
│ └── Tile_Static_Scroll.vcxproj.filters
├── chapter11
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── 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.sln
│ ├── Play_Sound.suo
│ ├── Play_Sound.v12.suo
│ ├── Play_Sound.vcxproj
│ ├── Play_Sound.vcxproj.filters
│ └── step.wav
├── chapter12
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── 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.sln
│ ├── Textured_Cube.suo
│ ├── Textured_Cube.v12.suo
│ ├── Textured_Cube.vcxproj
│ └── Textured_Cube.vcxproj.filters
├── chapter13
│ ├── DirectX_Project
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.sln
│ │ ├── DirectX_Project.suo
│ │ ├── DirectX_Project.v12.suo
│ │ ├── DirectX_Project.vcproj
│ │ ├── DirectX_Project.vcxproj
│ │ ├── DirectX_Project.vcxproj.filters
│ │ ├── 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.sln
│ │ ├── Render_Mesh.suo
│ │ ├── Render_Mesh.suo.old
│ │ ├── Render_Mesh.v12.suo
│ │ ├── Render_Mesh.vcxproj
│ │ ├── Render_Mesh.vcxproj.filters
│ │ ├── Render_Mesh.vcxproj.user
│ │ └── Thumbs.db
│ ├── Stock Mesh Demo
│ │ ├── DirectSound.cpp
│ │ ├── DirectSound.h
│ │ ├── DirectX_Project.suo
│ │ ├── fokker.bmp
│ │ ├── Fokker.X
│ │ ├── MyDirectX.cpp
│ │ ├── MyDirectX.h
│ │ ├── MyGame.cpp
│ │ ├── MyWindows.cpp
│ │ ├── Shader.fx
│ │ ├── Stock_Mesh.sln
│ │ ├── Stock_Mesh.suo
│ │ ├── Stock_Mesh.v12.suo
│ │ ├── Stock_Mesh.vcxproj
│ │ └── Stock_Mesh.vcxproj.filters
│ └── Thumbs.db
└── chapter14
├── Anti-Virus Game
│ ├── Anti-Virus.sln
│ ├── Anti-Virus.suo
│ ├── Anti-Virus.v12.suo
│ ├── Anti-Virus.vcxproj
│ ├── Anti-Virus.vcxproj.filters
│ ├── Anti-Virus.vcxproj.user
│ ├── binary.bmp
│ ├── binary.png
│ ├── charging.wav
│ ├── clip.wav
│ ├── DirectSound.cpp
│ ├── DirectSound.h
│ ├── energyslice.tga
│ ├── foom.wav
│ ├── fragment.tga
│ ├── healthslice.tga
│ ├── hit.wav
│ ├── killed.wav
│ ├── longfoom.wav
│ ├── MyDirectX.cpp
│ ├── MyDirectX.h
│ ├── MyGame.cpp
│ ├── MyWindows.cpp
│ ├── purplefire.tga
│ ├── ship.png
│ ├── step4.wav
│ ├── Thumbs.db
│ └── virus.tga
└── DirectX_Project
├── DirectSound.cpp
├── DirectSound.h
├── DirectX_Project.sln
├── DirectX_Project.suo
├── DirectX_Project.v12.suo
├── DirectX_Project.vcxproj
├── DirectX_Project.vcxproj.filters
├── DirectX_Project.vcxproj.user
├── MyDirectX.cpp
├── MyDirectX.h
├── MyGame.cpp
└── MyWindows.cpp
54 directories, 372 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论