XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone

NAVIGATION - SEARCH

Oh, The Vagueness!!

Hello,


I have a problem:


In Chapter 5, you tell us about creating a game service and making a game component for the InputHandler interface. However, the book was vague, and I don't know where to put any of the code. I tried creating a class called "InputHandler", but it said that one already exists, and I don't want to replace anything. Currently I'm just adding the stuff to the FPS class, but I don't know if that's right or not. The info for code implementation starts on page 85 in Chapter 5.


Question of the day:


"Where do I put it all?"

AirStyle120 - Wednesday, July 7, 2010 @ 6:35 PM

Re: Oh, The Vagueness!!

If you have any question where the code should go from the text then you can grab source code from the CD and see exactly where I put it.  For the input handler, you should definitely put it in the InputHandler.cs file and not the FPS.cs.


 

Chad Carter - Monday, July 12, 2010 @ 5:50 AM