Skip to Main Content
Learning XNA 3.0
book

Learning XNA 3.0

by Aaron Reed
November 2008
Beginner content levelBeginner
510 pages
16h 24m
English
O'Reilly Media, Inc.
Content preview from Learning XNA 3.0

Summary

  • Input devices supported in XNA include the keyboard, mouse, and Xbox 360 controller.

  • The Xbox 360 has several analog inputs that allow for varying degrees of input from a single button.

  • Collision detection is a constant balance between performance and accuracy. The more accurate an algorithm is, the more of a performance hit is usually incurred.

  • The bounding-box algorithm for collision detection is one of the most simple and straightforward algorithms. If you "draw" an imaginary box around each object, you can easily tell which box is colliding with another box.

  • You can speed up collision detection while improving accuracy by combining methods. Use a large box to determine if it's worth the time to check the smaller boxes surrounding sections of an object, or implement a grid-based system to avoid unnecessary collision checks between objects that are not close together.

  • Successfully implementing collision detection in XNA is like winning the Boston Marathon—except with no running, no sweating, no Boston, and no marathon.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XNA 4.0

Learning XNA 4.0

Aaron Reed
Beginning C# 7 Programming with Visual Studio 2017

Beginning C# 7 Programming with Visual Studio 2017

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

Publisher Resources

ISBN: 9780596154905Supplemental ContentErrata Page