XNA 2.0 Game Programming Recipes: A Problem-Solution Approach (Paperback)

Riemer Grootjans

  • 出版商: Apress
  • 出版日期: 2008-06-25
  • 定價: $1,398
  • 售價: 1.4$199
  • 語言: 英文
  • 頁數: 648
  • 裝訂: Paperback
  • ISBN: 159059925X
  • ISBN-13: 9781590599259
  • 相關分類: 遊戲設計 Game-design
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Join the game development revolution today! XNA greatly simplifies the development of your own games, lowering the barrier for programmers to get into game development. In XNA, you can start coding your games from the very start, a true revelation compared to other game programming environments. XNA doesn't sacrifice power for this ease of use - it is built entirely on DirectX technology.

XNA expert Riemer Grootjans brings together a selection of the hottest recipes in XNA programming for the Windows PC and Xbox360 console. Advanced XNA programmers, experienced coders new to games development, and even complete beginners will find XNA 2.0 Game Programming Recipes an invaluable companion when building games for fun or as commercial products.

What you’ll learn

XNA 2.0 Game Programming Recipes covers virtually every feature of the XNA 2.0 framework. It focuses primarily on 2D and 3D graphics programming, but other game programming features such as Audio playback and Networking are also discussed in detail.

These are some of the topics that are being covered in-depth:

  • How to create 2D graphics
  • 3D rendering techniques at various levels of difficulty
  • Loading, rendering and animating 3D Models
  • To read input devices: Keyboard, Mouse, Xbox360 Controller
  • Use Audio to spice up your game
  • Add Networking to your game to challenge your friends
  • Learn about the architectural XNA features, such as GameComponents
  • The Content pipeline: one of the 3 major components in XNA Game Development
  • A whole list of HLSL techniques!
    • Who is this book for?

      This book is for everyone! Whatever your experience, you will find a recipe to suit your need and skill. Great care has been taken to ensure the easier recipes provide a great deal of detail so they can be followed by readers without a great deal of programming experience. Each chapter gradually builds in difficulty so you will be able to progress through it as your XNA coding improves and you want to move on to more sophisticated techniques.

      A brief look at the table of contents

      Chapter 1: Getting Started with XNA 2.0 (24 pages) Installing XNA 2.0 Game Studio and starting a new XNA 2.0 Project. Timing, GameComponents, GameServices and the StorageDevice.

      Chapter 2: Setting Up Different Camera Modes in Your 3D World (120 pages) Setting up a first-person and a Quaternion camera. Smooth camera fly-bys, octree and quadtree culling, setting up a HLSL post-processing framework.

      Chapter 3: Working with 2D Images/Textures in XNA 2.0 (102 pages) How to use the SpriteBatch to render 2D images. 2D-in-3D techniques such as billboarding, explosion particle systems and mirroring.

      Chapter 4: Working with Models (108 pages) Loading, rendering and animating 3D Models. Combining World matrices, multiple kinds of collision detection. Defining your own TypeWriters and TypeReaders.

      Chapter 5: Getting the Most Out of Vertices (144 pages) Rendering lines and triangles, storing them on the graphics card. Bilinear interpolation, pointer-to-terrain picking and bump mapping. 3D ocean and racing track generation.

      Chapter 6: Adding Light to Your Scene in XNA 2.0 (60 pages) Lighting basics, shadowing and deferred rendering for multiple lights.

      Chapter 7: Adding Sounds to Your XNA 2.0 Project (12 pages) Adding sounds to your XNA 2.0 game, both for 2D and 3D games.

      Chapter 8: Networking in XNA 2.0 (28 pages) Adding networking to your XNA 2.0 game.

      Development environment costs

      The software you need to develop your own games in XNA 2.0 is completely free. You'll need both the Visual Studio Express C# edition and XNA 2.0 Game Studio, which you can download for free from Microsoft's website.

      The only cost incurred will be if you want to upload your finished game to your XBox360 console, when an annual subscription is payable to Microsoft. If you're just targeting the PC development environment, you won't have to pay anything.

商品描述(中文翻譯)

立即加入遊戲開發革命!XNA大大簡化了自己開發遊戲的過程,降低了程式設計師進入遊戲開發的門檻。在XNA中,你可以從一開始就開始編寫遊戲,相較於其他遊戲編程環境,這是一個真正的革新。XNA並不為了使用的便利而犧牲功能 - 它完全建立在DirectX技術上。

XNA專家Riemer Grootjans匯集了一系列最熱門的XNA程式設計食譜,適用於Windows PC和Xbox360主機。進階的XNA程式設計師、剛接觸遊戲開發的有經驗的程式設計師,甚至是完全新手,在建立遊戲時,都會發現《XNA 2.0遊戲程式設計食譜》是一個寶貴的伴侶,無論是為了娛樂還是商業產品。

你將學到什麼:
《XNA 2.0遊戲程式設計食譜》涵蓋了XNA 2.0框架的幾乎所有功能。它主要關注2D和3D圖形編程,但也詳細討論了其他遊戲編程功能,如音頻播放和網絡。

以下是一些深入探討的主題:
- 如何創建2D圖形
- 不同難度的3D渲染技術
- 加載、渲染和動畫化3D模型
- 讀取輸入設備:鍵盤、滑鼠、Xbox360控制器
- 使用音頻增添遊戲樂趣
- 添加網絡功能,與朋友一起挑戰
- 了解XNA的架構特性,如遊戲組件
- 內容管道:XNA遊戲開發的三個主要組件之一
- 一系列HLSL技術!

這本書適合誰閱讀?
這本書適合所有人!無論你的經驗如何,你都能找到適合你需求和技能的食譜。我們非常注重確保初級食譜提供了大量細節,以便讀者即使沒有太多編程經驗也能夠跟隨。每一章節都逐漸增加難度,所以當你的XNA編程能力提高並且想要進一步學習更高級的技術時,你可以逐步進展。

目錄簡介:
第1章:開始使用XNA 2.0(24頁)安裝XNA 2.0遊戲工作室並啟動新的XNA 2.0項目。定時、遊戲組件、遊戲服務和存儲設備。
第2章:在你的3D世界中設置不同的相機模式(120頁)設置第一人稱和四元數相機。平滑的相機飛越、八叉樹和四叉樹剪裁、設置HLSL後處理框架。
第3章:在XNA 2.0中使用2D圖像/紋理(102頁)如何使用SpriteBatch渲染2D圖像。2D在3D中的技巧,如廣告牌、爆炸粒子系統和鏡像。
第4章:使用模型(108頁)加載、渲染和動畫化3D模型。結合世界矩陣、多種碰撞檢測。定義自己的TypeWriters和TypeReaders。
第5章:充分利用頂點(144頁)渲染線條和三角形,將它們存儲在顯卡上。雙線性插值、指針對地形的拾取和凹凸映射。3D海洋和賽車賽道生成。
第6章:在XNA 2.0中為場景添加光線(60頁)照明基礎知識,多光源的陰影和延遲渲染。
第7章:在你的XNA 2.0項目中添加聲音(12頁)為你的XNA 2.0遊戲添加聲音,無論是2D還是3D遊戲。
第8章:在XNA 2.0中添加網絡功能(28頁)為你的XNA 2.0遊戲添加網絡功能。

開發環境成本:
開發自己的XNA 2.0遊戲所需的軟件完全免費。你需要下載免費的Visual Studio Express C#版本和XNA 2.0遊戲工作室,這些都可以從微軟的網站上下載。