You are previewing Microsoft XNA 4.0 Game Development Cookbook.
O'Reilly logo
Microsoft XNA 4.0 Game Development Cookbook

Book Description

This book goes further than the basic manuals to help you exploit Microsoft XNA to create fantastic virtual worlds and effects in your 2D or 3D games. Includes 35 essential recipes for game developers.

  • Accelerate your XNA learning with a myriad of tips and tricks to solve your everyday problems

  • Get to grips with adding special effects, virtual atmospheres and computer controlled characters with this book and e-book

  • A fast-paced cookbook packed with screenshots to illustrate each advanced step by step task

  • Apply the techniques learned for wiring games for PC, Xbox 360 and Windows Phone 7

  • In Detail

    Microsoft XNA attempts to free game developers from writing "repetitive boilerplate code", allowing them to focus on producing enjoyable gameplay rather than tedious and complicated setup. The Framework has reduced the once steep learning curve for game development, transforming it into something more attainable, and this cookbook will help you to take full advantage of XNA to bring reality into your virtual worlds.

    "Microsoft XNA 4.0 Game Development Cookbook" is the perfect resource for propelling your game development capabilities from the simple 2D demo towards engaging and exciting, professional looking games. With a diverse selection of game-related topics covered, discover how to create rich 2D and 3D worlds filled with interesting characters, detailed scenery and dynamic special effects applicable to PC, Xbox 360 and Windows Phone 7 game play.

    There is no shortage of introductory texts available for XNA, a number of which are fantastic for getting started with simple 2D games, but “Microsoft XNA 4.0 Game Development Cookbook” will help you take the steps to start producing games that have deeper gameplay, compelling graphics and that little bit of extra polish!

    The book's recipes will get you up and going quickly with the next level of game features such as 3D graphics, AI, and network play.

    With this practical cookbook to hand, even the more experienced developer will be better equipped to achieve high level tasks with XNA in a quick and efficient manner.

    Table of Contents

    1. Microsoft XNA 4.0 Game Development Cookbook
      1. Table of Contents
      2. Microsoft XNA 4.0 Game Development Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Applying Special Effects
        1. Introduction
        2. Creating shadows within the Reach profile
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Creating shadows within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        4. Implementing lens flare within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        5. Implementing lens flare within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
        6. Implementing smoke within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        7. Creating explosions within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        8. Creating explosions within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also...
      9. 2. Building 2D and 3D Terrain
        1. Introduction
        2. Displaying hexagonal maps
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        3. Displaying 2D isometric maps
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        4. Importing and displaying 3D isometric maps
          1. Getting ready
          2. How to do it...
            1. How it works...
        5. Generating 3D height maps
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        6. Creating block worlds within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Textures
        7. Creating block worlds within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
      10. 3. Procedural Modeling
        1. Introduction
        2. Modeling triangles
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Dynamic vertex buffers
            3. See also
        3. Modeling discs
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also...
        4. Modeling spheres
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        5. Modeling tori
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
        6. Modeling trees
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
      11. 4. Creating Water and Sky
        1. Introduction
        2. Creating water within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Shallow water
              2. Deep water
        3. Building skyboxes within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
        4. Building skyboxes within the HiDef profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
        5. Cloud generation within the Reach profile
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Billboarding
            3. See also
      12. 5. Non-Player Characters
        1. Introduction
        2. A* pathfinding
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Distance estimation
            3. See also
        3. Character state machines
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Scripting
              2. Animation
            3. See also
        4. Constructing dialogue
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Scripting
            3. See also
        5. Decentralizing behavior
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
      13. 6. Playing with Animation
        1. Introduction
        2. Applying animation with SkinnedEffect
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Motion capture with Kinect
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Under voice command
        4. Integrating rag doll physics
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Part time action
        5. Rendering crowds
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
      14. 7. Creating Vehicles
        1. Introduction
        2. Applying simple car physics
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Getting more physical
            3. See also
        3. Implementing simple plane controls
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Rendering reflective materials within the Reach profile
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. The cost of reflecting
          5. See also
      15. 8. Receiving Player Input
        1. Introduction
        2. Adding text fields
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. On the phone
        3. Creating dialog wheels
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Dragging, dropping, and sliding
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      16. 9. Networking
        1. Introduction
        2. Connecting across a LAN
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        3. Connecting across the Web
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
        4. Synchronizing client states
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      17. Index